diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-07-24 12:35:15 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-08-07 10:17:27 +0200 |
commit | d5ac4a9627b9ce9e3ff90bfc724d84a5788ffb38 (patch) | |
tree | 99697420b53327725b06f60dc29046aa52ea3f13 | |
parent | 99b92fd9920372e57bfe3a624b29915ca3335d99 (diff) | |
download | NetworkManager-lr/compiler-options.tar.gz |
build: set -Wall when probing extra warning optionslr/compiler-options
Some warnings depends on others: -Wformat-security won't work without
-Wformat. With -Wall we're confident enough that we have important
warnings enabled and in any case we're going to enable it anyway.
-rw-r--r-- | m4/compiler_options.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index ee1712ebfa..0683e44e38 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -92,7 +92,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then -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/')], [], + _NM_COMPILER_FLAG([-Wall $(printf '%s' "$option" | sed 's/^-Wno-/-W/')], [], [CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"], []) done unset option |