[MPlayer-cvslog] r37341 - trunk/configure

al subversion at mplayerhq.hu
Wed Dec 17 22:02:44 CET 2014


Author: al
Date: Wed Dec 17 22:02:44 2014
New Revision: 37341

Log:
configure: GCC: Add -Werror=format-security

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

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Dec 11 01:42:10 2014	(r37340)
+++ trunk/configure	Wed Dec 17 22:02:44 2014	(r37341)
@@ -2786,7 +2786,7 @@ if test -z "$CFLAGS" || test "$_profile"
     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


More information about the MPlayer-cvslog mailing list