osx: fix compiler warnings
authorTristan Matthews <tristan@sat.qc.ca>
Tue, 23 Mar 2010 06:38:43 +0000 (02:38 -0400)
committerBenjamin Otte <otte@redhat.com>
Tue, 23 Mar 2010 07:23:09 +0000 (08:23 +0100)
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
sys/osxvideo/Makefile.am

index ceff749..a41f4b8 100644 (file)
@@ -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;
 
index a9aeeb0..8893c2e 100644 (file)
@@ -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