]> sourceware.org Git - glibc.git/commitdiff
Fix several build failures with GCC6 due to unused static variables.
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 18 Sep 2015 19:27:20 +0000 (20:27 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 18 Sep 2015 19:42:54 +0000 (20:42 +0100)
2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>

        * resolv/base64.c (rcsid): Remove unused static.
        * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
        static.  (tqpi1): Likewise.
        * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
        * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
        * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
        * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
        * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
        * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
        * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
        * timezone/private.h (time_t_min): Likewise.  (time_t_max):
        Likewise.

ChangeLog
resolv/base64.c
sysdeps/ieee754/dbl-64/atnat2.h
sysdeps/ieee754/dbl-64/uexp.h
sysdeps/ieee754/dbl-64/upow.h
sysdeps/ieee754/flt-32/e_log10f.c
sysdeps/ieee754/flt-32/s_cosf.c
sysdeps/ieee754/ldbl-128/e_lgammal_r.c
sysdeps/ieee754/ldbl-128/s_erfl.c
sysdeps/ieee754/ldbl-128/s_log1pl.c
timezone/private.h

index 03e23409edac2f1dfb259824a1b075a70ee38888..7a57fffb27d7f72a9f6c33a770e6200688830811 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * resolv/base64.c (rcsid): Remove unused static.
+       * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
+       static.  (tqpi1): Likewise.
+       * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
+       * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
+       * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
+       * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
+       * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
+       * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
+       * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
+       * timezone/private.h (time_t_min): Likewise.  (time_t_max):
+       Likewise.
+
 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
index ea584ed357f02a66601fa930887a00208a609c55..519e5d2d5ece2c815bde3b56da2a89ad78d77f59 100644 (file)
  * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
  */
 
-#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$BINDId: base64.c,v 8.7 1999/10/13 16:39:33 vixie Exp $";
-#endif /* not lint */
-
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
index e0d65afd066508cb2ebf6e9ca63a9e1e8e0834b2..82943f904e20f88ec7014de65a2b1fe5552becf8 100644 (file)
 /**/ hpi1           = {{0x3c91a626, 0x33145c07} }, /*  pi/2-hpi     */
 /**/ mhpi           = {{0xbff921fb, 0x54442d18} }, /* -pi/2         */
 /**/ qpi            = {{0x3fe921fb, 0x54442d18} }, /*  pi/4         */
-/**/ qpi1           = {{0x3c81a626, 0x33145c07} }, /*  pi/4-qpi     */
 /**/ mqpi           = {{0xbfe921fb, 0x54442d18} }, /* -pi/4         */
 /**/ tqpi           = {{0x4002d97c, 0x7f3321d2} }, /*  3pi/4        */
-/**/ tqpi1          = {{0x3c9a7939, 0x4c9e8a0a} }, /*  3pi/4-tqpi   */
 /**/ mtqpi          = {{0xc002d97c, 0x7f3321d2} }, /* -3pi/4        */
 /**/ u1             = {{0x3c314c2a, 0x00000000} }, /*  9.377e-19    */
 /**/ u2             = {{0x3bf955e4, 0x00000000} }, /*  8.584e-20    */
 /**/ hpi1           = {{0x33145c07, 0x3c91a626} }, /*  pi/2-hpi     */
 /**/ mhpi           = {{0x54442d18, 0xbff921fb} }, /* -pi/2         */
 /**/ qpi            = {{0x54442d18, 0x3fe921fb} }, /*  pi/4         */
-/**/ qpi1           = {{0x33145c07, 0x3c81a626} }, /*  pi/4-qpi     */
 /**/ mqpi           = {{0x54442d18, 0xbfe921fb} }, /* -pi/4         */
 /**/ tqpi           = {{0x7f3321d2, 0x4002d97c} }, /*  3pi/4        */
-/**/ tqpi1          = {{0x4c9e8a0a, 0x3c9a7939} }, /*  3pi/4-tqpi   */
 /**/ mtqpi          = {{0x7f3321d2, 0xc002d97c} }, /* -3pi/4        */
 /**/ u1             = {{0x00000000, 0x3c314c2a} }, /*  9.377e-19    */
 /**/ u2             = {{0x00000000, 0x3bf955e4} }, /*  8.584e-20    */
index 6817eaf07406d5347283f1afd6432ad995ab5a83..42b21f27fda7d31427ac4c03dc398267c9ff93be 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "mydefs.h"
 
-const static double one = 1.0, zero = 0.0, hhuge = 1.0e300, tiny = 1.0e-300,
+const static double zero = 0.0, hhuge = 1.0e300, tiny = 1.0e-300,
 err_0 = 1.000014, err_1 = 0.000016;
 const static int4 bigint = 0x40862002,
              badint = 0x40876000,smallint = 0x3C8fffff;
index c8569a9456b2d405c73073d3e711f9891ce8aaab..b4911e5906ba3cb8606fb0295b4e09e535eee08b 100644 (file)
@@ -34,7 +34,6 @@
 /**/ nZERO         = {{0x80000000, 0}},          /* -0.0          */
 /**/ INF            = {{0x7ff00000, 0x00000000}}, /* INF           */
 /**/ nINF           = {{0xfff00000, 0x00000000}}, /* -INF          */
-/**/ sqrt_2         = {{0x3ff6a09e, 0x667f3bcc}}, /* sqrt(2)       */
 /**/ ln2a           = {{0x3fe62e42, 0xfefa3800}}, /* ln(2) 43 bits */
 /**/ ln2b           = {{0x3d2ef357, 0x93c76730}}, /* ln(2)-ln2a    */
 /**/ bigu           = {{0x4297ffff, 0xfffffd2c}}, /* 1.5*2**42 -724*2**-10  */
@@ -48,7 +47,6 @@
 /**/ nZERO         = {{0, 0x80000000}},          /* -0.0          */
 /**/ INF            = {{0x00000000, 0x7ff00000}}, /* INF           */
 /**/ nINF           = {{0x00000000, 0xfff00000}}, /* -INF           */
-/**/ sqrt_2         = {{0x667f3bcc, 0x3ff6a09e}}, /* sqrt(2)       */
 /**/ ln2a           = {{0xfefa3800, 0x3fe62e42}}, /* ln(2) 43 bits */
 /**/ ln2b           = {{0x93c76730, 0x3d2ef357}}, /* ln(2)-ln2a    */
 /**/ bigu           = {{0xfffffd2c, 0x4297ffff}}, /* 1.5*2**42 -724*2**-10  */
index 96f0e81c5274da3bf043783f80016bcd23565feb..1daeef71071b856af974be923d677e5983e8fea9 100644 (file)
@@ -22,8 +22,6 @@ ivln10     =  4.3429449201e-01, /* 0x3ede5bd9 */
 log10_2hi  =  3.0102920532e-01, /* 0x3e9a2080 */
 log10_2lo  =  7.9034151668e-07; /* 0x355427db */
 
-static const float zero   =  0.0;
-
 float
 __ieee754_log10f(float x)
 {
index 864ab27a4fd5ae3adaa5cfa4ad278756e4987ab4..0affd406bb75e17e1376dd0241c47bc790dc8470 100644 (file)
@@ -21,8 +21,6 @@ static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $";
 #include <math.h>
 #include <math_private.h>
 
-static const float one=1.0;
-
 #ifndef COSF
 # define COSF_FUNC __cosf
 #else
index 500aacc9c476980dc154e7354c127b1191c5bf64..ab5a96eb115de15e62115968daebf4905f46ddfd 100644 (file)
@@ -82,7 +82,6 @@ DIAG_IGNORE_NEEDS_COMMENT (4.6, "-Woverflow");
 static const long double MAXLGM = 1.0485738685148938358098967157129705071571E4928L;
 DIAG_POP_NEEDS_COMMENT;
 static const long double one = 1.0L;
-static const long double zero = 0.0L;
 static const long double huge = LDBL_MAX;
 
 /* log gamma(x) = ( x - 0.5 ) * log(x) - x + LS2PI + 1/x P(1/x^2)
index fa4609f136cd3305efe399df639f43f7e0c01de1..08c80a33eac86af8aaac1d45ca9e948ca34802fc 100644 (file)
@@ -140,7 +140,6 @@ deval (long double x, const long double *p, int n)
 
 static const long double
 tiny = 1e-4931L,
-  half = 0.5L,
   one = 1.0L,
   two = 2.0L,
   /* 2/sqrt(pi) - 1 */
index ff759bc000fe77fdd051145b3eabd86a888d56ac..960955077bc73cc9e12c657cf7f59dd7b3f32aef 100644 (file)
@@ -117,7 +117,6 @@ static const long double C2 = 1.428606820309417232121458176568075500134E-6L;
 
 static const long double sqrth = 0.7071067811865475244008443621048490392848L;
 /* ln (2^16384 * (1 - 2^-113)) */
-static const long double maxlog = 1.1356523406294143949491931077970764891253E4L;
 static const long double zero = 0.0L;
 
 long double
index 4e8f4ae7bc63554dda9983b07a40f68a19318442..ed19e066d912a37be8e8d42b8fb881a54b495edd 100644 (file)
@@ -326,16 +326,6 @@ const char *       scheck(const char * string, const char * format);
 #define TYPE_SIGNED(type) (((type) -1) < 0)
 #endif /* !defined TYPE_SIGNED */
 
-/* The minimum and maximum finite time values.  */
-static time_t const time_t_min =
-  (TYPE_SIGNED(time_t)
-   ? (time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1)
-   : 0);
-static time_t const time_t_max =
-  (TYPE_SIGNED(time_t)
-   ? - (~ 0 < 0) - ((time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1))
-   : -1);
-
 #ifndef INT_STRLEN_MAXIMUM
 /*
 ** 302 / 1000 is log10(2.0) rounded up.
This page took 0.099286 seconds and 5 git commands to generate.