diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | m4/gst-error.m4 | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -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 |