build: avoid -Wformat-nonliteral warning
sed/utils.c:236:11: error: format not a string literal, argument
types not checked [-Werror=format-nonliteral]
* configure.ac: Remove ineffective nw="$nw -Wformat-nonliteral" and
instead use targeted gl_WARN_ADD([-Wno-format-nonliteral])
This commit is contained in:
1 parent
53d12197e2
commit
7ef6edc817
1 file changed
+1
-1
+1
-1
@@ -238,7 +238,6 @@ if test "$gl_gcc_warnings" = yes; then
|
||||
nw="$nw -Wdeclaration-after-statement" # too useful to forbid
|
||||
nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
|
||||
nw="$nw -Wsign-conversion" # Too many warnings for now
|
||||
nw="$nw -Wformat-nonliteral" # who.c and pinky.c strftime uses
|
||||
nw="$nw -Wswitch-default" # Too many warnings for now
|
||||
|
||||
gl_MANYWARN_ALL_GCC([ws])
|
||||
@@ -247,6 +246,7 @@ if test "$gl_gcc_warnings" = yes; then
|
||||
gl_WARN_ADD([$w])
|
||||
done
|
||||
gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now
|
||||
gl_WARN_ADD([-Wno-format-nonliteral]) # ngettext in ck_fwrite
|
||||
|
||||
# clang is unduly picky about some things.
|
||||
AC_CACHE_CHECK([whether the compiler is clang], [utils_cv_clang],
|
||||
|
||||
Reference in new issue
Block a user