summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-06-05 16:12:03 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-06-05 16:12:03 +0000
commit46ec7dfc1c09ff550ed6b7a4e0d3f2b2ac7d3ee8 (patch)
treee0a27ce5a1e0473c767c397f2b468838244701d6
parent68fb019d4044b9878aef4ca223fc13c19ffc7d0c (diff)
m4/gst-error.m4: Add -fno-strict-aliasing when compiling with -Werror, to work around warnings caused by G_LOCK with ...RELEASE-0_10_20
Original commit message from CVS: * m4/gst-error.m4: Add -fno-strict-aliasing when compiling with -Werror, to work around warnings caused by G_LOCK with recent GLib versions (2.16.x) (#316221).
-rw-r--r--ChangeLog6
-rw-r--r--m4/gst-error.m45
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 438f72b..1da5e72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-05 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+ * m4/gst-error.m4:
+ Add -fno-strict-aliasing when compiling with -Werror, to work around
+ warnings caused by G_LOCK with recent GLib versions (2.16.x) (#316221).
+
2008-06-05 Jan Schmidt <jan.schmidt@sun.com>
* gtk-doc.mak:
diff --git a/m4/gst-error.m4 b/m4/gst-error.m4
index f97f9a6..de6502d 100644
--- a/m4/gst-error.m4
+++ b/m4/gst-error.m4
@@ -56,6 +56,9 @@ AC_DEFUN([AG_GST_SET_ERROR_CFLAGS],
])
done
])
+ else
+ AS_COMPILER_FLAG(-fno-strict-aliasing,
+ ERROR_CFLAGS="$ERROR_CFLAGS -fno-strict-aliasing")
fi
fi
@@ -93,7 +96,7 @@ AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror"
dnl add exceptions
- for f in '-Wno-non-virtual-dtor'
+ for f in '-Wno-non-virtual-dtor -fno-strict-aliasing'
do
AS_CXX_COMPILER_FLAG([$f], ERROR_CXXFLAGS="$ERROR_CXXFLAGS $f")
done