This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Don't use -Wno-error=undef
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Tue, 18 Aug 2015 16:21:57 +0000
- Subject: Don't use -Wno-error=undef
- Authentication-results: sourceware.org; auth=none
This patch, relative to a tree with
<https://sourceware.org/ml/libc-alpha/2015-08/msg00680.html> and
<https://sourceware.org/ml/libc-alpha/2015-08/msg00681.html> (pending
review) applied, removes the use of -Wno-error=undef, so that -Wundef
warnings become errors.
Tested for x86_64 and x86. If people see build or test errors
resulting from this on other architectures, they should fix those as
usual.
2015-08-18 Joseph Myers <joseph@codesourcery.com>
* Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
-Wno-error=undef.
diff --git a/Makeconfig b/Makeconfig
index f136b88..bbe83ec 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -750,7 +750,7 @@ else
endif
+gccwarn += -Wundef
ifeq ($(enable-werror),yes)
-+gccwarn += -Werror -Wno-error=undef
++gccwarn += -Werror
endif
+gccwarn-c = -Wstrict-prototypes
--
Joseph S. Myers
joseph@codesourcery.com