build: Enable -Wformat -Wformat-security compiler warnings

This commit is contained in:
Marcel Holtmann 2018-12-07 10:05:51 +01:00
parent 5e31b194e2
commit 18b4f8b359
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ AC_DEFUN([COMPILER_FLAGS], [
CFLAGS+=" -Wdeclaration-after-statement"
CFLAGS+=" -Wmissing-declarations"
CFLAGS+=" -Wredundant-decls"
CFLAGS+=" -Wformat -Wformat-security"
if ( $CC -v 2>/dev/null | grep "gcc version" ); then
CFLAGS+=" -Wcast-align"
fi