fix two reported warnings with SERVER_ADMIN_MSG defined
Report stated a -Wformat-nonliteral at line 612, and a -Wformat-security at line 614 I was only seeing the latter, so I added the former to the flags in sys/unix/hints/include/compiler.370. Some compiler versions have that warning on by default internally and others don't. If the format string isn't a string literal, there's no inteference with printf argument checking because that only operates on string literals.
This commit is contained in:
@@ -56,6 +56,7 @@ CFLAGS+=-Wall -Wextra -Wno-missing-field-initializers \
|
||||
CFLAGS+=-pedantic
|
||||
CFLAGS+=-Wmissing-declarations
|
||||
CFLAGS+=-Wunreachable-code
|
||||
CFLAGS+=-Wformat-nonliteral
|
||||
#
|
||||
# the following are not allowed in C++
|
||||
CFLAGS+=-Wimplicit
|
||||
|
||||
Reference in New Issue
Block a user