mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-18 23:40:37 +02:00
build: add -Wformat-nonliteral to --enable-more-warnings flags
New with gcc 6.0.
This commit is contained in:
parent
87a1360505
commit
6725962f83
1 changed files with 1 additions and 1 deletions
|
|
@ -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/')], [],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue