[MPlayer-dev-eng] [PATCH] configure: GCC: Add -Werror=format-security

Alexander Strasser eclipse7 at gmx.net
Thu Dec 11 00:42:40 CET 2014


Seems like a good idea security-wise. Also distributions
are starting to add that flag by default when building
their packages.

Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 20688ee..d66c563 100755
--- a/configure
+++ b/configure
@@ -2786,7 +2786,7 @@ if test -z "$CFLAGS" || test "$_profile" != "" || test "$_debug" != ""; then
     CFLAGS="-O2 $_march $_mcpu $_pipe"
   else
     CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
-    WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls"
+    WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security"
     WARN_CFLAGS="-Werror-implicit-function-declaration"
     extra_ldflags="$extra_ldflags -ffast-math"
   fi
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20141211/e79e3d10/attachment.asc>


More information about the MPlayer-dev-eng mailing list