From 6bd9f5361f5a7dbbf65f27d15f5faf71fb73bb43 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 6 Feb 2017 14:23:35 +0100 Subject: [PATCH] m4/compiler_options.m4: add line breaks for compiler options to check No change in behavior. --- m4/compiler_options.m4 | 23 +++++++++++++++++------ 1 file 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"], [])