Commit 46ec7dfc authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

m4/gst-error.m4: Add -fno-strict-aliasing when compiling with -Werror, to work...

m4/gst-error.m4: Add -fno-strict-aliasing when compiling with -Werror, to work around warnings caused by G_LOCK with ...

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).
parent 68fb019d
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:
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment