diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-06 14:23:35 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-06 14:24:28 +0100 |
commit | 6bd9f5361f5a7dbbf65f27d15f5faf71fb73bb43 (patch) | |
tree | 500b6d98be25f593676162142e293fd5c0137e5b /m4 | |
parent | 1859b90c48141d4443b0e08378363188d538b2b6 (diff) | |
download | NetworkManager-6bd9f5361f5a7dbbf65f27d15f5faf71fb73bb43.tar.gz |
m4/compiler_options.m4: add line breaks for compiler options to check
No change in behavior.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler_options.m4 | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index 0023c36b91..e2f51c4838 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -61,16 +61,27 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror" fi - for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \ - -Wdeclaration-after-statement -Wformat-security \ - -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \ + for option in \ + -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 \ - -Wmissing-include-dirs -Wno-pragmas; do + -Wundef \ + -Wimplicit-function-declaration \ + -Wpointer-arith \ + -Winit-self \ + -Wformat-nonliteral \ + -Wmissing-include-dirs \ + -Wno-pragmas \ + ; 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/')], [], [CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"], []) |