configure: add -Wshadow to gcc/clang-specific CFLAGS

This commit is contained in:
Miroslav Lichvar
2025-11-19 16:31:52 +01:00
parent 42e7a7ae12
commit b86c9d9c83

2
configure vendored
View File

@@ -560,7 +560,7 @@ else
fi fi
if [ "x$MYCC" = "xgcc" ] || [ "x$MYCC" = "xclang" ]; then if [ "x$MYCC" = "xgcc" ] || [ "x$MYCC" = "xclang" ]; then
MYCFLAGS="$MYCFLAGS -Wmissing-prototypes -Wall" MYCFLAGS="$MYCFLAGS -Wmissing-prototypes -Wshadow -Wall"
fi fi
if [ "x$PKG_CONFIG" = "x" ]; then if [ "x$PKG_CONFIG" = "x" ]; then