[PATCH 6/8] Disable useless shadow warnings.

Eric Anholt eric at anholt.net
Mon Apr 21 11:56:20 PDT 2014


They never find real bugs in my experience.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 4fa5a63..4ec7a8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,7 @@ m4_ifndef([XORG_MACROS_VERSION],
           [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
+CWARNFLAGS=`echo $CWARNFLAGS | sed 's|-Wshadow||g'`
 
 # Checks for header files.
 AC_CHECK_HEADERS([err.h])
-- 
1.9.2



More information about the xorg-devel mailing list