add -Wformat-nonliteral and -Wformat-security

can be useful, not sure they are a subset of the flags we
use already...

Change-Id: Iec742a99427a791d9527368302a1136df2ff96cd
This commit is contained in:
Pascal Massimino
2015-01-05 07:20:18 -08:00
committed by James Zern
parent 4e2589ff81
commit 80d950d94e
2 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@ AC_DEFUN([TEST_AND_ADD_CFLAGS],
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wall])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wdeclaration-after-statement])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wextra])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wformat-nonliteral])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wformat-security])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-declarations])
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-prototypes])