[FFmpeg-cvslog] build: Use -Werror=format-security

Agostino Sarubbo git at videolan.org
Tue Jan 6 23:40:21 CET 2015


ffmpeg | branch: master | Agostino Sarubbo <ago at gentoo.org> | Sun Dec 21 14:38:57 2014 +0100| [fe082998683334e7f573cfe3876810fb80c5249c] | committer: Vittorio Giovara

build: Use -Werror=format-security

Reduce the chance of introducing a class of bugs quite hard to track.

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

 configure |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 6648035..1408689 100755
--- a/configure
+++ b/configure
@@ -4452,6 +4452,7 @@ elif enabled gcc; then
     check_cflags -Werror=return-type
     check_cflags -Werror=declaration-after-statement
     check_cflags -Werror=vla
+    check_cflags -Werror=format-security
     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