aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-24 11:37:38 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-24 11:37:38 +0200
commitd74336e96dc24b578324f45d57e108d686a95df5 (patch)
treec7375341fbd2965d11d986eae3caedd1c5929805
parent20cd805a2a9a1f637108b9b132d3ab007bd43d5f (diff)
build: warn about unused but set variables
-rw-r--r--m4/compiler_warnings.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index 0e36494a..519647a4 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -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])