Don't use -Wno-error=undef.

This patch removes the use of -Wno-error=undef, so that -Wundef
warnings become errors.

Tested for x86_64, x86, mips64 (all three ABIs) and arm.

	* Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
	-Wno-error=undef.
This commit is contained in:
Joseph Myers 2015-08-20 20:50:05 +00:00
parent 3a2a9a9066
commit 48bb14bdbb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-08-20 Joseph Myers <joseph@codesourcery.com>
* Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
-Wno-error=undef.
2015-08-20 H.J. Lu <hongjiu.lu@intel.com>
* i386/i686/multiarch/strcasestr-c.c: Removed.

View File

@ -750,7 +750,7 @@ else
endif
+gccwarn += -Wundef
ifeq ($(enable-werror),yes)
+gccwarn += -Werror -Wno-error=undef
+gccwarn += -Werror
endif
+gccwarn-c = -Wstrict-prototypes