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
|
* Copyright (c) 1985, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
@ -84,7 +84,7 @@ double
|
||||||
asinh(double x)
|
asinh(double x)
|
||||||
{
|
{
|
||||||
double t,s;
|
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 */
|
big =1.0E20, /* fl(1+big) == big */
|
||||||
one =1.0 ;
|
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
|
* Copyright (c) 1985, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
@ -110,7 +110,7 @@ ic(q2, 9.9176615021572857300E-4, -10, 1.03FC4CB8C98E8)
|
||||||
double
|
double
|
||||||
__exp__E(double x, double c)
|
__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;
|
double z,p,q,xp,xh,w;
|
||||||
if(copysign(x,one)>small) {
|
if(copysign(x,one)>small) {
|
||||||
z = x*x ;
|
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
|
* Copyright (c) 1985, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
@ -114,7 +114,7 @@ ic(invln2, 1.4426950408889633870E0, 0, 1.71547652B82FE)
|
||||||
double
|
double
|
||||||
expm1(double x)
|
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;
|
double z,hi,lo,c;
|
||||||
int k;
|
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
|
* Copyright (c) 1985, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
@ -114,7 +114,7 @@ ic(sqrt2, 1.4142135623730951455E0, 0, 1.6A09E667F3BCD)
|
||||||
double
|
double
|
||||||
log1p(double x)
|
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 */
|
half=1.0/2.0, small=1.0E-20; /* 1+small == 1 */
|
||||||
double z,s,t,c;
|
double z,s,t,c;
|
||||||
int k;
|
int k;
|
||||||
|
|
Loading…
Reference in New Issue