diff options
author | Pascal Massimino <pascal.massimino@gmail.com> | 2015-01-05 07:20:18 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-03-02 18:43:35 -0800 |
commit | 1273e84517836910a80bb09ed5c9964eceaac3e9 (patch) | |
tree | 7c72efbba7f037b13263606bacfab33487d952ab | |
parent | 3ae78eb757f43d5ce72e7c9890602861e5be98e8 (diff) | |
download | libwebp-1273e84517836910a80bb09ed5c9964eceaac3e9.tar.gz |
add -Wformat-nonliteral and -Wformat-security
can be useful, not sure they are a subset of the flags we
use already...
(cherry picked from commit 80d950d94ee8645d311150d645e880d108acf038)
Change-Id: Iec742a99427a791d9527368302a1136df2ff96cd
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | makefile.unix | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2d1d2463..e5722a2b 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/makefile.unix b/makefile.unix index 7454a13f..233cb7b3 100644 --- a/makefile.unix +++ b/makefile.unix @@ -67,6 +67,8 @@ EXTRA_FLAGS += -Wmissing-prototypes EXTRA_FLAGS += -Wmissing-declarations EXTRA_FLAGS += -Wdeclaration-after-statement EXTRA_FLAGS += -Wshadow +EXTRA_FLAGS += -Wformat-security -Wformat-nonliteral + # EXTRA_FLAGS += -Wvla # AVX2-specific flags: |