From 4411328d3200392e9b8d830a45d9ac679abb4ead Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 3 Feb 2010 23:39:37 -0800 Subject: Add -Wformat=2 to the default CWARNFLAGS This will include -Wformat-security to catch possible security problems in formatting in printf, scanf, etc. Signed-off-by: Jeremy Huddleston Reviewed-by: Matt Turner --- xorg-macros.m4.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in index caf61c2..dc1df8e 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 -fno-strict-aliasing \ --Wbad-function-cast" +-Wbad-function-cast -Wformat=2" case `$CC -dumpversion` in 3.4.* | 4.*) CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" -- cgit v1.2.3