arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-activate.patch

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