[cairo-commit] configure.in

Carl Worth cworth at kemper.freedesktop.org
Tue Aug 8 01:30:51 PDT 2006


 configure.in |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

New commits:
diff-tree 9d542a29cba71fe4b4067fa9a9c0fe98a7d8a7a8 (from c3b912d7db34c5881cf14725b7d29266cbf24877)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Aug 8 01:30:40 2006 -0700

    Disable warning options that are not available in gcc 3.3.5 at least.
    
    We'll want to turn these back on eventually with a nice conditional check on the
    appropriate version of gcc.

diff --git a/configure.in b/configure.in
index 976c8ea..be478b3 100644
--- a/configure.in
+++ b/configure.in
@@ -535,13 +535,18 @@ dnl Use lots of warning flags with GCC
 
 WARN_CFLAGS=""
 
+dnl XXX: Here are some warnings we'd like to eanble, but it looks like
+dnl we'll need to make them conditional on gcc version >= 4 or so:
+dnl
+dnl -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations
+dnl -Wdeclaration-after-statement -Wold-style-definition
+
 if test "x$GCC" = "xyes"; then
 	WARN_CFLAGS="-Wall -Wsign-compare -Werror-implicit-function-declaration \
-	-Wstrict-aliasing=2 -Wpointer-arith -Wwrite-strings -Winit-self \
-	-Wswitch-enum -Wunsafe-loop-optimizations \
+	-Wpointer-arith -Wwrite-strings -Wswitch-enum \
 	-Wpacked -Wmissing-format-attribute -Wstrict-prototypes \
-	-Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement \
-	-Wnested-externs -fno-strict-aliasing -Wold-style-definition"
+	-Wmissing-prototypes -Wmissing-declarations \
+	-Wnested-externs -fno-strict-aliasing"
 fi
 
 AC_SUBST(WARN_CFLAGS)


More information about the cairo-commit mailing list