Disable strict aliasing to stop type-punning warning spew.
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 6 Jun 2007 13:56:17 +0000 (16:56 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 6 Jun 2007 13:56:17 +0000 (16:56 +0300)
configure.ac

index a5af632..fec2973 100644 (file)
@@ -27,6 +27,8 @@ AS=${AS-as}
 AC_SUBST(AS)
 if test "$ac_cv_c_compiler_gnu" = yes; then
     CFLAGS="$CFLAGS -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
+    dnl XXX TODO: check if the compiler supports this
+    CFLAGS="$CFLAGS -fno-strict-aliasing"
 fi
 export CFLAGS