build/autotools: add compiler warnings that we have in meson

Synchronize the compiler warnings for meson and autotools.
This commit is contained in:
Thomas Haller
2022-11-03 10:21:50 +01:00
parent f3682588b2
commit 4d2cb2d32b

View File

@@ -88,6 +88,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in \ for option in \
$_CFLAGS_MORE_WARNINGS_DISABLE_LTO \ $_CFLAGS_MORE_WARNINGS_DISABLE_LTO \
-Wall \
-Wextra \ -Wextra \
-Wdeclaration-after-statement \ -Wdeclaration-after-statement \
-Wfloat-equal \ -Wfloat-equal \
@@ -99,15 +100,19 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wmissing-declarations \ -Wmissing-declarations \
-Wmissing-include-dirs \ -Wmissing-include-dirs \
-Wmissing-prototypes \ -Wmissing-prototypes \
-Wparentheses-equality \
-Wpointer-arith \ -Wpointer-arith \
-Wshadow \ -Wshadow \
-Wshift-negative-value \ -Wshift-negative-value \
-Wstrict-prototypes \ -Wstrict-prototypes \
-Wtypedef-redefinition \
-Wundef \ -Wundef \
-Wunknown-attributes \
-Wvla \ -Wvla \
-Wno-duplicate-decl-specifier \ -Wno-duplicate-decl-specifier \
-Wno-format-truncation \ -Wno-format-truncation \
-Wno-format-y2k \ -Wno-format-y2k \
-Wno-gnu-variable-sized-type-not-at-end \
-Wno-missing-field-initializers \ -Wno-missing-field-initializers \
-Wno-pragmas \ -Wno-pragmas \
-Wno-sign-compare \ -Wno-sign-compare \