bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning in sincosl.c


From: Bruno Haible
Subject: warning in sincosl.c
Date: Sun, 25 Mar 2007 19:58:13 +0200
User-agent: KMail/1.5.4

Hi Paolo,

On Solaris 10 with "cc", I get this warning:

"./sincosl.c", line 233: warning: identifier redeclared; ANSI C requires 
"static": sincosl_table

and on HP-UX 11 with "cc":

cc: "sincosl.c", line 233: warning 562: Redeclaration of "sincosl_table" with a 
different storage class specifier: "sincosl_table" will have internal linkage.

Presumably this fix is ok with you?


2007-03-25  Bruno Haible  <address@hidden>

        * lib/sincosl.c (sincosl_table): Make static.

diff -u -r1.5 sincosl.c
--- lib/sincosl.c       18 Feb 2007 15:10:28 -0000      1.5
+++ lib/sincosl.c       25 Mar 2007 17:57:05 -0000
@@ -230,7 +230,7 @@
    Computed using gmp.
  */
 
-const long double sincosl_table[] = {
+static const long double sincosl_table[] = {
 
 /* x =  1.48437500000000000000000000000000000e-01L 
3ffc3000000000000000000000000000 */
 /* cos(x) = 
0.fd2f5320e1b790209b4dda2f98f79caaa7b873aff1014b0fbc5243766d03cb006bc837c4358 */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]