diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-29 10:29:37 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-29 10:29:37 +0000 |
commit | e6cc5473ced56b4c3f54f4ed0ee41ed65bc702ee (patch) | |
tree | 82eeffe4637298a82fdb3da2dc3478ea5253f00d | |
parent | 3b1845a2acc6b7128f96a2ea89fee04572af10e8 (diff) | |
download | xine-lib-e6cc5473ced56b4c3f54f4ed0ee41ed65bc702ee.tar.gz xine-lib-e6cc5473ced56b4c3f54f4ed0ee41ed65bc702ee.tar.bz2 |
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
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
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 --------------------------------------------- |