mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Add -Wformat and -Werror=format-security compiler flags
These are part of the hardening flags used by Debian. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
39a6e02fd4
commit
97592faa51
2
configure
vendored
2
configure
vendored
@ -5067,9 +5067,11 @@ elif enabled ccc; then
|
|||||||
elif enabled gcc; then
|
elif enabled gcc; then
|
||||||
check_optflags -fno-tree-vectorize
|
check_optflags -fno-tree-vectorize
|
||||||
check_cflags -Werror=implicit-function-declaration
|
check_cflags -Werror=implicit-function-declaration
|
||||||
|
check_cflags -Werror=format-security
|
||||||
check_cflags -Werror=missing-prototypes
|
check_cflags -Werror=missing-prototypes
|
||||||
check_cflags -Werror=return-type
|
check_cflags -Werror=return-type
|
||||||
check_cflags -Werror=vla
|
check_cflags -Werror=vla
|
||||||
|
check_cflags -Wformat
|
||||||
enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
|
enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
|
||||||
elif enabled llvm_gcc; then
|
elif enabled llvm_gcc; then
|
||||||
check_cflags -mllvm -stack-alignment=16
|
check_cflags -mllvm -stack-alignment=16
|
||||||
|
Loading…
Reference in New Issue
Block a user