25845f
commit 48bb14bdbbeb09cb3cd950d7346688958f1bce1a
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Thu Aug 20 20:50:05 2015 +0000
25845f
25845f
    Don't use -Wno-error=undef.
25845f
    
25845f
    This patch removes the use of -Wno-error=undef, so that -Wundef
25845f
    warnings become errors.
25845f
    
25845f
    Tested for x86_64, x86, mips64 (all three ABIs) and arm.
25845f
    
25845f
            * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
25845f
            -Wno-error=undef.
25845f
25845f
diff --git a/Makeconfig b/Makeconfig
25845f
index b1bf7f24b6154e3d..3c0d4abc5f5f30df 100644
25845f
--- a/Makeconfig
25845f
+++ b/Makeconfig
25845f
@@ -645,7 +645,7 @@ else
25845f
 endif
25845f
 +gccwarn += -Wundef
25845f
 ifeq ($(enable-werror),yes)
25845f
-+gccwarn += -Werror -Wno-error=undef
25845f
++gccwarn += -Werror
25845f
 endif
25845f
 +gccwarn-c = -Wstrict-prototypes
25845f