mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
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 80d950d94e
)
Change-Id: Iec742a99427a791d9527368302a1136df2ff96cd
This commit is contained in:
parent
3ae78eb757
commit
1273e84517
@ -54,6 +54,7 @@ AC_DEFUN([TEST_AND_ADD_CFLAGS],
|
|||||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wall])
|
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wall])
|
||||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wdeclaration-after-statement])
|
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wdeclaration-after-statement])
|
||||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wextra])
|
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], [-Wformat-security])
|
||||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-declarations])
|
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-declarations])
|
||||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-prototypes])
|
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-prototypes])
|
||||||
|
@ -67,6 +67,8 @@ EXTRA_FLAGS += -Wmissing-prototypes
|
|||||||
EXTRA_FLAGS += -Wmissing-declarations
|
EXTRA_FLAGS += -Wmissing-declarations
|
||||||
EXTRA_FLAGS += -Wdeclaration-after-statement
|
EXTRA_FLAGS += -Wdeclaration-after-statement
|
||||||
EXTRA_FLAGS += -Wshadow
|
EXTRA_FLAGS += -Wshadow
|
||||||
|
EXTRA_FLAGS += -Wformat-security -Wformat-nonliteral
|
||||||
|
|
||||||
# EXTRA_FLAGS += -Wvla
|
# EXTRA_FLAGS += -Wvla
|
||||||
|
|
||||||
# AVX2-specific flags:
|
# AVX2-specific flags:
|
||||||
|
Loading…
Reference in New Issue
Block a user