This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Don't use -Wno-error=undef


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]