According to C99:
6.11.5 Storage-class specifiers [#1] The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. and gcc -Wextra warns about this, so s/const static/static const/
This commit is contained in:
parent
682d4acc5f
commit
138486a3df
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: n_asinh.c,v 1.6 2003/08/07 16:44:50 agc Exp $ */
|
||||
/* $NetBSD: n_asinh.c,v 1.7 2008/04/29 15:10:02 uwe Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -84,7 +84,7 @@ double
|
|||
asinh(double x)
|
||||
{
|
||||
double t,s;
|
||||
const static double small=1.0E-10, /* fl(1+small*small) == 1 */
|
||||
static const double small=1.0E-10, /* fl(1+small*small) == 1 */
|
||||
big =1.0E20, /* fl(1+big) == big */
|
||||
one =1.0 ;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: n_exp__E.c,v 1.6 2003/08/07 16:44:51 agc Exp $ */
|
||||
/* $NetBSD: n_exp__E.c,v 1.7 2008/04/29 15:10:02 uwe Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -110,7 +110,7 @@ ic(q2, 9.9176615021572857300E-4, -10, 1.03FC4CB8C98E8)
|
|||
double
|
||||
__exp__E(double x, double c)
|
||||
{
|
||||
const static double zero=0.0, one=1.0, half=1.0/2.0, small=1.0E-19;
|
||||
static const double zero=0.0, one=1.0, half=1.0/2.0, small=1.0E-19;
|
||||
double z,p,q,xp,xh,w;
|
||||
if(copysign(x,one)>small) {
|
||||
z = x*x ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: n_expm1.c,v 1.6 2003/08/07 16:44:51 agc Exp $ */
|
||||
/* $NetBSD: n_expm1.c,v 1.7 2008/04/29 15:10:02 uwe Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -114,7 +114,7 @@ ic(invln2, 1.4426950408889633870E0, 0, 1.71547652B82FE)
|
|||
double
|
||||
expm1(double x)
|
||||
{
|
||||
const static double one=1.0, half=1.0/2.0;
|
||||
static const double one=1.0, half=1.0/2.0;
|
||||
double z,hi,lo,c;
|
||||
int k;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: n_log1p.c,v 1.6 2003/08/07 16:44:52 agc Exp $ */
|
||||
/* $NetBSD: n_log1p.c,v 1.7 2008/04/29 15:10:02 uwe Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -114,7 +114,7 @@ ic(sqrt2, 1.4142135623730951455E0, 0, 1.6A09E667F3BCD)
|
|||
double
|
||||
log1p(double x)
|
||||
{
|
||||
const static double zero=0.0, negone= -1.0, one=1.0,
|
||||
static const double zero=0.0, negone= -1.0, one=1.0,
|
||||
half=1.0/2.0, small=1.0E-20; /* 1+small == 1 */
|
||||
double z,s,t,c;
|
||||
int k;
|
||||
|
|
Loading…
Reference in New Issue