about summary refs log tree commit diff
path: root/timezone
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-08-20 20:51:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-08-20 20:51:22 +0000
commit8d9e08981e1ac5ee90209adb3042206e9fffd286 (patch)
treecaebcffacffc0363dc418694eba18b2ce6b8617b /timezone
parent48bb14bdbbeb09cb3cd950d7346688958f1bce1a (diff)
downloadglibc-8d9e08981e1ac5ee90209adb3042206e9fffd286.tar.gz
glibc-8d9e08981e1ac5ee90209adb3042206e9fffd286.tar.xz
glibc-8d9e08981e1ac5ee90209adb3042206e9fffd286.zip
Don't use -Wno-strict-prototypes in timezone/.
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.
Diffstat (limited to 'timezone')
-rw-r--r--timezone/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/timezone/Makefile b/timezone/Makefile
index d2abdec4aa..81d4a3e0b5 100644
--- a/timezone/Makefile
+++ b/timezone/Makefile
@@ -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