On 12.07.2014 21:58, Timothy Gu wrote:
On Jul 12, 2014 12:36 PM, "Andreas Cadhalpun" <
andreas.cadhal...@googlemail.com> wrote:

Now with patch...

Alphabetical order please.

Fixed.

Best regards,
Andreas
>From 8c4d70191de1ae8bde8b5f958d0606c4dcf634bd Mon Sep 17 00:00:00 2001
From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
Date: Sat, 12 Jul 2014 22:11:56 +0200
Subject: [PATCH] Add -Wformat and -Werror=format-security compiler flags

These are part of the hardening flags used by Debian.
---
 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
-- 
2.0.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to