Commit b627d837 authored by Matt Thirtytwo's avatar Matt Thirtytwo Committed by Harald Judt
Browse files

No -Wshadow flag for enable_debug=full (bug #11637)

Use it only for enable_debug=yes.
parent 5eb3f0cd
......@@ -73,7 +73,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
-Wno-unused-parameter -Wold-style-definition \
-Wdeclaration-after-statement \
-Wmissing-declarations \
-Wmissing-noreturn -Wshadow -Wpointer-arith \
-Wmissing-noreturn -Wpointer-arith \
-Wcast-align -Wformat -Wformat-security -Wformat-y2k \
-Winit-self -Wmissing-include-dirs -Wundef \
-Wnested-externs"
......@@ -94,7 +94,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
AC_MSG_RESULT([full])
else
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g"
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow"
AC_MSG_RESULT([yes])
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment