summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-02-03 23:39:37 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2010-02-03 23:39:37 -0800
commit4411328d3200392e9b8d830a45d9ac679abb4ead (patch)
tree6277f0f7d22cedb9708c9f217d5feefd4d1ea7c6
parent46d22716aed8d7e8ee188c2f2d2b3ba600dc3dd3 (diff)
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 <jeremyhu@apple.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--xorg-macros.m4.in2
1 files changed, 1 insertions, 1 deletions
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"