This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Do not use -Wno-strict-prototypes
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Mon, 19 Oct 2015 18:15:06 +0000
- Subject: Do not use -Wno-strict-prototypes
- Authentication-results: sourceware.org; auth=none
Two glibc makefiles use -Wno-strict-prototypes. I don't know if this
was needed before my recent conversion of many function definitions to
prototype style, but it's not needed now; this patch removes it.
Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).
2015-10-19 Joseph Myers <joseph@codesourcery.com>
* posix/Makefile (CFLAGS-regex.c): Remove variable.
* resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
diff --git a/posix/Makefile b/posix/Makefile
index cbc4bc6..aeb9890 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -189,7 +189,6 @@ $(objpfx)config-name.h: $(..)scripts/config-uname.sh $(common-objpfx)config.make
'$(config-machine)-$(config-vendor)' > $@.new
mv -f $@.new $@
-CFLAGS-regex.c = -Wno-strict-prototypes
CFLAGS-getaddrinfo.c = -DRESOLVER -fexceptions
CFLAGS-pause.c = -fexceptions -fasynchronous-unwind-tables
CFLAGS-pread.c = -fexceptions -fasynchronous-unwind-tables
diff --git a/resolv/Makefile b/resolv/Makefile
index 1dcb75f..c055d0d 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -96,7 +96,7 @@ endif
CFLAGS-res_hconf.c = -fexceptions
# The BIND code elicits some harmless warnings.
-+cflags += -Wno-strict-prototypes -Wno-write-strings
++cflags += -Wno-write-strings
# The DNS NSS modules needs the resolver.
$(objpfx)libnss_dns.so: $(objpfx)libresolv.so
--
Joseph S. Myers
joseph@codesourcery.com