Add -Wshadow and deal with the warnings.
This commit is contained in:
@@ -28,7 +28,10 @@ dnl C characteristics
|
||||
AC_REQUIRE([AC_C___ATTRIBUTE__])
|
||||
AC_REQUIRE([AC_C_INLINE])
|
||||
AC_REQUIRE([AC_C_CONST])
|
||||
rk_WFLAGS(-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs)
|
||||
rk_WFLAGS(-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow)
|
||||
|
||||
dnl -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
|
||||
dnl -Wcast-qual -Wswitch -Wformat=2 -Wwrite-strings
|
||||
|
||||
AC_REQUIRE([rk_DB])
|
||||
|
||||
|
@@ -27,7 +27,7 @@ if test -z "$WFLAGS" -a "$GCC" = "yes"; then
|
||||
# that fail for various bits of older code in appl/. Let's not use it
|
||||
# for the main libraries, though.
|
||||
|
||||
WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-unused-result"
|
||||
WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-unused-result -Wno-shadow"
|
||||
fi
|
||||
AC_SUBST(WFLAGS)dnl
|
||||
AC_SUBST(WFLAGS_LITE)dnl
|
||||
|
Reference in New Issue
Block a user