Commit 97592faa authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Michael Niedermayer

Add -Wformat and -Werror=format-security compiler flags

These are part of the hardening flags used by Debian.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 39a6e02f
......@@ -5067,9 +5067,11 @@ elif enabled ccc; then
elif enabled gcc; then
check_optflags -fno-tree-vectorize
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=format-security
check_cflags -Werror=missing-prototypes
check_cflags -Werror=return-type
check_cflags -Werror=vla
check_cflags -Wformat
enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment