From: Tim-Philipp Müller Date: Sun, 24 Apr 2011 13:03:56 +0000 (+0100) Subject: configure: don't pass -Waddress to ObjC compiler on OSX when compiling osxvideosink X-Git-Tag: 1.19.3~509^2~7136^2~598 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85932c74df99d6d222c5e092db8354a24e717fa9;p=platform%2Fupstream%2Fgstreamer.git configure: don't pass -Waddress to ObjC compiler on OSX when compiling osxvideosink Temporary workaround until we fix this properly and check for the ObjC warning/error flags instead of just passing CFLAGS to the ObjC compiler. https://bugzilla.gnome.org/show_bug.cgi?id=643939 --- diff --git a/configure.ac b/configure.ac index 2413c48..36bd4a7 100644 --- a/configure.ac +++ b/configure.ac @@ -296,12 +296,22 @@ AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO], dnl define an ERROR_CFLAGS Makefile variable dnl -Wundef: too many broken headers -dnl -Waggregate-return: causes problems with ObjC code like in osxvideosink -AG_GST_SET_ERROR_CFLAGS($GST_GIT, [ +if test "x$HAVE_OSX_VIDEO" != "xyes"; then + AG_GST_SET_ERROR_CFLAGS($GST_GIT, [ -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls - -Wwrite-strings -Wold-style-definition + -Wwrite-strings -Wold-style-definition -Waggregate-return -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs ]) +else + dnl work-around for us passing GST_CFLAGS to the ObjC-compiler, which + dnl doesn't understand all warning flags that the C compiler knows about + dnl (e.g. -Waddress) or causes problems with some flags (-Waggregate-return) + AG_GST_SET_ERROR_CFLAGS($GST_GIT, [ + -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls + -Wwrite-strings -Wold-style-definition + -Winit-self -Wmissing-include-dirs -Wno-multichar + -Wnested-externs ]) +fi dnl define an ERROR_CXXFLAGS Makefile variable AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [