]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't use -Wno-strict-prototypes in timezone/.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 20 Aug 2015 20:51:22 +0000 (20:51 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 20 Aug 2015 20:51:22 +0000 (20:51 +0000)
The current timezone/ code from tzcode doesn't need
-Wno-strict-prototypes.  This patch removes it from the CFLAGS
settings in timezone/Makefile.

Tested for x86_64 that glibc still builds OK with the patch applied.

* timezone/Makefile (CFLAGS-zdump.c): Remove
-Wno-strict-prototypes.
(CFLAGS-zic.c): Likewise.
(CFLAGS-ialloc.c): Likewise.
(CFLAGS-scheck.c): Likewise.

ChangeLog
timezone/Makefile

index 92f438c245d7be84d6f41c6b0da6e6c4a7e97a12..c5e70b17ba4d6e46382400578f5c3cc091c8865f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
 
+       * timezone/Makefile (CFLAGS-zdump.c): Remove
+       -Wno-strict-prototypes.
+       (CFLAGS-zic.c): Likewise.
+       (CFLAGS-ialloc.c): Likewise.
+       (CFLAGS-scheck.c): Likewise.
+
        * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
        -Wno-error=undef.
 
index d2abdec4aa4505349152cdbe1b92d2128f58f7b7..81d4a3e0b52bb762fe90e35e5aef568dce470a46 100644 (file)
@@ -61,11 +61,10 @@ tz-cflags = -DTZDIR='"$(zonedir)"' \
            -DTZDEFRULES='"$(posixrules-file)"' \
            -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
 
-CFLAGS-zdump.c = -fwrapv -Wno-strict-prototypes -DNOID $(tz-cflags) \
-                -DHAVE_GETTEXT
-CFLAGS-zic.c = -Wno-strict-prototypes -DNOID $(tz-cflags) -DHAVE_GETTEXT
-CFLAGS-ialloc.c = -Wno-strict-prototypes -DNOID -DHAVE_GETTEXT
-CFLAGS-scheck.c = -Wno-strict-prototypes -DNOID -DHAVE_GETTEXT
+CFLAGS-zdump.c = -fwrapv -DNOID $(tz-cflags) -DHAVE_GETTEXT
+CFLAGS-zic.c = -DNOID $(tz-cflags) -DHAVE_GETTEXT
+CFLAGS-ialloc.c = -DNOID -DHAVE_GETTEXT
+CFLAGS-scheck.c = -DNOID -DHAVE_GETTEXT
 
 # We have to make sure the data for testing the tz functions is available.
 # Don't add leapseconds here since test-tz made checks that work only without