mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 10:14:41 +00:00
build: reorder flags in "m4/compiler_options.m4"
Mostly sort alphabetically, but - keep -Wextra first - move "-Wno-*" flags to the end
This commit is contained in:
parent
5120205f98
commit
4a72c121ed
|
@ -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 \
|
||||
-Wimplicit-function-declaration \
|
||||
-Wpointer-arith \
|
||||
-Winit-self \
|
||||
-Wformat-nonliteral \
|
||||
-Wformat-security \
|
||||
-Wimplicit-fallthrough \
|
||||
-Wimplicit-function-declaration \
|
||||
-Winit-self \
|
||||
-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/')], [],
|
||||
|
|
Loading…
Reference in a new issue