[PATCH libdrm 05/17] configure: enable -Wshadow when available

Emil Velikov emil.l.velikov at gmail.com
Mon Aug 24 09:34:08 PDT 2015


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f07507b..c2a8ed1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,7 +174,7 @@ MAYBE_WARN="-Wall -Wextra \
 -Wstrict-aliasing=2 -Winit-self \
 -Wdeclaration-after-statement -Wold-style-definition \
 -Wno-missing-field-initializers -Wno-unused-parameter \
--Wno-attributes -Wno-long-long -Winline"
+-Wno-attributes -Wno-long-long -Winline -Wshadow"
 
 # invalidate cached value if MAYBE_WARN has changed
 if test "x$libdrm_cv_warn_maybe" != "x$MAYBE_WARN"; then
-- 
2.5.0



More information about the dri-devel mailing list