[PATCH util-macros 2/2] Add -Wformat=2 to the default CWARNFLAGS
Jeremy Huddleston
jeremyhu at freedesktop.org
Tue Feb 2 14:44:38 PST 2010
This will include -Wformat-security to catch possible security problems in formatting in printf, scanf, etc.
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
xorg-macros.m4.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 40f5939..6d6f044 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -589,7 +589,7 @@ AC_REQUIRE([AC_PROG_CC])
if test "x$GCC" = xyes ; then
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Wstrict-aliasing=2 \
--Wbad-function-cast"
+-Wbad-function-cast -Wformat=2"
case `$CC -dumpversion` in
3.4.* | 4.*)
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
--
1.6.2
More information about the xorg-devel
mailing list