summaryrefslogtreecommitdiff
path: root/m4/compiler_options.m4
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2016-06-03 11:05:05 -0500
committerDan Williams <dcbw@redhat.com>2016-06-03 11:05:05 -0500
commit6725962f83eef3268fa76e8c046997273c4285e4 (patch)
tree441c94993c482af9e57835f7364f10044b9042df /m4/compiler_options.m4
parent87a1360505f6fd2f9f699f320fe7d08ddd0eb863 (diff)
downloadNetworkManager-6725962f83eef3268fa76e8c046997273c4285e4.tar.gz
build: add -Wformat-nonliteral to --enable-more-warnings flags
New with gcc 6.0.
Diffstat (limited to 'm4/compiler_options.m4')
-rw-r--r--m4/compiler_options.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4
index 3d2e4dbefc..b2472ab81e 100644
--- a/m4/compiler_options.m4
+++ b/m4/compiler_options.m4
@@ -68,7 +68,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wstrict-prototypes \
-fno-strict-aliasing -Wno-unused-but-set-variable \
-Wundef -Wimplicit-function-declaration \
- -Wpointer-arith -Winit-self \
+ -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/')], [],