build: Enable -Wformat -Wformat-security compiler warnings
This commit is contained in:
parent
5e31b194e2
commit
18b4f8b359
|
@ -22,6 +22,7 @@ AC_DEFUN([COMPILER_FLAGS], [
|
||||||
CFLAGS+=" -Wdeclaration-after-statement"
|
CFLAGS+=" -Wdeclaration-after-statement"
|
||||||
CFLAGS+=" -Wmissing-declarations"
|
CFLAGS+=" -Wmissing-declarations"
|
||||||
CFLAGS+=" -Wredundant-decls"
|
CFLAGS+=" -Wredundant-decls"
|
||||||
|
CFLAGS+=" -Wformat -Wformat-security"
|
||||||
if ( $CC -v 2>/dev/null | grep "gcc version" ); then
|
if ( $CC -v 2>/dev/null | grep "gcc version" ); then
|
||||||
CFLAGS+=" -Wcast-align"
|
CFLAGS+=" -Wcast-align"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue