summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-06 19:17:49 +0100
committerThomas Haller <thaller@redhat.com>2017-02-06 19:27:21 +0100
commit4a72c121edeaf3bb317bb30fae926045add64915 (patch)
tree305694cde1aab771cca9a8933b703141b84d331c /m4
parent5120205f9898f19e5738b2df7539447331d2c8ea (diff)
downloadNetworkManager-4a72c121edeaf3bb317bb30fae926045add64915.tar.gz
build: reorder flags in "m4/compiler_options.m4"
Mostly sort alphabetically, but - keep -Wextra first - move "-Wno-*" flags to the end
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler_options.m432
1 files changed, 16 insertions, 16 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4
index 05272b3254..c998711d72 100644
--- a/m4/compiler_options.m4
+++ b/m4/compiler_options.m4
@@ -63,28 +63,28 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in \
-Wextra \
- -Wno-missing-field-initializers \
- -Wimplicit-fallthrough \
- -Wshadow \
- -Wmissing-declarations \
- -Wmissing-prototypes \
-Wdeclaration-after-statement \
- -Wformat-security \
-Wfloat-equal \
- -Wno-unused-parameter \
- -Wno-sign-compare \
- -Wno-duplicate-decl-specifier \
- -Wstrict-prototypes \
- -Wno-unused-but-set-variable \
- -Wno-format-y2k \
- -Wundef \
+ -Wformat-nonliteral \
+ -Wformat-security \
+ -Wimplicit-fallthrough \
-Wimplicit-function-declaration \
- -Wpointer-arith \
-Winit-self \
- -Wformat-nonliteral \
+ -Wmissing-declarations \
-Wmissing-include-dirs \
- -Wno-pragmas \
+ -Wmissing-prototypes \
+ -Wpointer-arith \
+ -Wshadow \
+ -Wstrict-prototypes \
+ -Wundef \
+ -Wno-duplicate-decl-specifier \
-Wno-format-truncation \
+ -Wno-format-y2k \
+ -Wno-missing-field-initializers \
+ -Wno-pragmas \
+ -Wno-sign-compare \
+ -Wno-unused-but-set-variable \
+ -Wno-unused-parameter \
; do
dnl GCC 4.4 does not warn when checking for -Wno-* flags (https://gcc.gnu.org/wiki/FAQ#wnowarning)
_NM_COMPILER_FLAG([$(printf '%s' "$option" | sed 's/^-Wno-/-W/')], [],