summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-11-03 10:21:50 +0100
committerThomas Haller <thaller@redhat.com>2022-11-07 08:50:07 +0100
commit4d2cb2d32b943ef40ad8d764e524219afdad8f99 (patch)
treebba07020b04df8687912a0db2fa95286e87a4907
parentf3682588b2db14a01c8631a293a06ad572874bfe (diff)
downloadNetworkManager-4d2cb2d32b943ef40ad8d764e524219afdad8f99.tar.gz
build/autotools: add compiler warnings that we have in meson
Synchronize the compiler warnings for meson and autotools.
-rw-r--r--m4/compiler_options.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4
index b2e9d80e0d..cd2385e224 100644
--- a/m4/compiler_options.m4
+++ b/m4/compiler_options.m4
@@ -88,6 +88,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in \
$_CFLAGS_MORE_WARNINGS_DISABLE_LTO \
+ -Wall \
-Wextra \
-Wdeclaration-after-statement \
-Wfloat-equal \
@@ -99,15 +100,19 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wmissing-declarations \
-Wmissing-include-dirs \
-Wmissing-prototypes \
+ -Wparentheses-equality \
-Wpointer-arith \
-Wshadow \
-Wshift-negative-value \
-Wstrict-prototypes \
+ -Wtypedef-redefinition \
-Wundef \
+ -Wunknown-attributes \
-Wvla \
-Wno-duplicate-decl-specifier \
-Wno-format-truncation \
-Wno-format-y2k \
+ -Wno-gnu-variable-sized-type-not-at-end \
-Wno-missing-field-initializers \
-Wno-pragmas \
-Wno-sign-compare \