build: Use -Wshadow compiler option
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 15 Jul 2012 22:15:53 +0000 (19:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 15 Jul 2012 22:15:53 +0000 (19:15 -0300)
acinclude.m4

index 329c6a9..e1aee2e 100644 (file)
@@ -15,7 +15,7 @@ AC_DEFUN([COMPILER_FLAGS], [
                CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
        fi
        if (test "$USE_MAINTAINER_MODE" = "yes"); then
-               CFLAGS+=" -Werror -Wextra"
+               CFLAGS+=" -Werror -Wextra -Wshadow"
                CFLAGS+=" -Wno-unused-parameter"
                CFLAGS+=" -Wno-missing-field-initializers"
                CFLAGS+=" -Wdeclaration-after-statement"