build: warn about unused but set variables

This commit is contained in:
Aleksander Morgado
2012-08-24 11:37:38 +02:00
parent 20cd805a2a
commit d74336e96d

View File

@@ -10,7 +10,8 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wstrict-prototypes \
-Wno-unused-parameter -Wno-sign-compare \
-fno-strict-aliasing -Wno-deprecated-declarations; do
-fno-strict-aliasing -Wno-deprecated-declarations \
-Wno-unused-but-set-variable; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])