[FFmpeg-cvslog] Add -Wformat and -Werror=format-security compiler flags

Andreas Cadhalpun git at videolan.org
Sat Jul 12 23:22:13 CEST 2014


ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Sat Jul 12 22:11:56 2014 +0200| [97592faa51eacda9a949c4f0ba2a6d7989ef5f3b] | committer: Michael Niedermayer

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

These are part of the hardening flags used by Debian.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97592faa51eacda9a949c4f0ba2a6d7989ef5f3b
---

 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index e39ecb9..a89639d 100755
--- a/configure
+++ b/configure
@@ -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



More information about the ffmpeg-cvslog mailing list