build: enable -Wshadow by default
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
parent
818120d409
commit
814c2a8f9a
|
@ -1090,7 +1090,7 @@ fi
|
||||||
AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).])
|
AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).])
|
||||||
|
|
||||||
# set default gcc warnings
|
# set default gcc warnings
|
||||||
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
|
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security -Wshadow"
|
||||||
if test "${gcc_wextra}" = yes; then
|
if test "${gcc_wextra}" = yes; then
|
||||||
GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
|
GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
|
||||||
GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
|
GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
|
||||||
|
|
Loading…
Reference in New Issue