summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-02-09 13:40:40 +0000
committerRichard Hughes <richard@hughsie.com>2009-02-09 13:40:40 +0000
commit9b98b6c64228fda1a74d53f9595f13cefd163e35 (patch)
treef4c3c27e155d2785141c27b561a42707c55af55f /configure.ac
parent5b7dbc3f41d5fe6dffba7e80cd5a92fb7afd9a22 (diff)
trivial: add Wno-strict-aliasing to fix the compile thanks to GCC 4.4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cbe6016..871be23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,11 @@ if test "x$GCC" = "xyes"; then
*) CFLAGS="$CFLAGS -Wsign-compare" ;;
esac
+ case " $CFLAGS " in
+ *[\ \ ]-Wno-strict-aliasing[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Wno-strict-aliasing" ;;
+ esac
+
if test "x$enable_ansi" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-ansi[\ \ ]*) ;;