GNOME Bugzilla – Bug 391971
Fix build with gcc-2.x
Last modified: 2007-02-06 15:15:06 UTC
The following patches make -bad build with gcc 2 again.
Created attachment 79199 [details] [review] C89 fixes
Created attachment 79201 [details] [review] fix casting issue Without this patch, the compiler fails with gstmodplug.cc: In function `void gst_modplug_class_init(GstModPlugClass *)': gstmodplug.cc:220: assignment to `GstStateChangeReturn (*)(GstElement *, GstStateChange)' from `GstStateChangeReturn ()(GstElement *, GstStateChange)' make[4]: *** [libgstmodplug_la-gstmodplug.lo] Error 1
Thanks, committed: 2007-01-03 Tim-Philipp Müller <tim at centricular dot net> Patch by: Jens Granseuer <jensgr at gmx net> * ext/xvid/gstxvidenc.c: (gst_xvidenc_encode), (gst_xvidenc_get_property): * gst/filter/gstbpwsinc.c: (bpwsinc_transform_ip): * gst/filter/gstfilter.c: (plugin_init): * gst/filter/gstiir.c: (iir_transform_ip): * gst/filter/gstlpwsinc.c: (lpwsinc_transform_ip): * gst/modplug/gstmodplug.cc: * gst/nuvdemux/gstnuvdemux.c: (gst_nuv_demux_header_load), (gst_nuv_demux_stream_extend_header): Fix build with gcc-2.x (declare variables at the beginning of a block etc.). Fixes #391971.
*** Bug 405005 has been marked as a duplicate of this bug. ***