From 53370fc899da91b4a55c868a19d788ae69bc20e1 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Tue, 23 Mar 2010 02:38:43 -0400 Subject: [PATCH] osx: fix compiler warnings Added void parameter to avoid old-style definition warning. Added -Wno-aggregate-return flag to avoid erroneous aggregate return warning. https://bugzilla.gnome.org/show_bug.cgi?id=613663 --- sys/osxaudio/gstosxaudioelement.c | 2 +- sys/osxvideo/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/osxaudio/gstosxaudioelement.c b/sys/osxaudio/gstosxaudioelement.c index ceff749ef7..a41f4b8772 100644 --- a/sys/osxaudio/gstosxaudioelement.c +++ b/sys/osxaudio/gstosxaudioelement.c @@ -53,7 +53,7 @@ static void gst_osx_audio_element_class_init (GstOsxAudioElementInterface * klass); GType -gst_osx_audio_element_get_type () +gst_osx_audio_element_get_type (void) { static GType gst_osxaudioelement_type = 0; diff --git a/sys/osxvideo/Makefile.am b/sys/osxvideo/Makefile.am index a9aeeb0ec7..8893c2e802 100644 --- a/sys/osxvideo/Makefile.am +++ b/sys/osxvideo/Makefile.am @@ -14,6 +14,6 @@ libgstosxvideosink_la_LIBADD = \ libgstosxvideosink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,QuickTime -Wl,-framework -Wl,OpenGL libgstosxvideosink_la_LIBTOOLFLAGS = --tag=disable-static -AM_OBJCFLAGS=$(CFLAGS) $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) +AM_OBJCFLAGS=$(CFLAGS) $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) -Wno-aggregate-return noinst_HEADERS = osxvideosink.h cocoawindow.h