Commit 4a72c121 authored by Thomas Haller's avatar Thomas Haller

build: reorder flags in "m4/compiler_options.m4"

Mostly sort alphabetically, but
  - keep -Wextra first
  - move "-Wno-*" flags to the end
parent 5120205f
......@@ -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/')], [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment