From e6cc5473ced56b4c3f54f4ed0ee41ed65bc702ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 29 Jun 2006 10:29:37 +0000 Subject: Also enable -Wstrict-aliasing when available so that rules breakage will be either resolved or fixed, even if building without optimisations. CVS patchset: 8076 CVS date: 2006/06/29 10:29:37 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 52caba968..db51d2072 100644 --- a/configure.ac +++ b/configure.ac @@ -2305,6 +2305,10 @@ if test "x$wformat" != "x"; then fi CFLAGS="$CFLAGS $wformat" +AC_TRY_CFLAGS("-Wstrict-aliasing", wsa="-Wstrict-aliasing") +AC_TRY_CFLAGS("-Wstrict-aliasing=2", wsa="-Wstrict-aliasing=2") +CFLAGS="$CFLAGS $wsa" + dnl --------------------------------------------- dnl Output configuration files dnl --------------------------------------------- -- cgit v1.2.3