GNOME Bugzilla – Bug 505745
[avidemux] warning: 'res' may be used uninitialized in this function
Last modified: 2007-12-26 16:06:51 UTC
cc1: warnings being treated as errors gstavidemux.c: In function 'gst_avi_demux_loop': gstavidemux.c:3701: warning: 'res' may be used uninitialized in this function make[3]: *** [libgstavi_la-gstavidemux.lo] Fehler 1
Bug in GLib-2.15.x AFAIK [0]. Could you do $ make ERROR_CFLAGS='' 2>warnings.log and attach warnings.log? (so we can fix them all in one go) [0] http://mail.gnome.org/archives/gtk-devel-list/2007-December/msg00301.html
Created attachment 101627 [details] [review] fix 3 compiler warnings fixes three gcc 4.2.1 compiler warnings
It was those three warnings inhibiting my build on Ubuntu 7.10 with jhbuild. It is compiler warnings on gst files, not to anything related to glib.
With last patch warnings.log is emty.
> It was those three warnings inhibiting my build on Ubuntu 7.10 with jhbuild. > It is compiler warnings on gst files, not to anything related to glib. Doesn't jhbuild build against the latest glib? I think these warnings are caused by changes to the g_assert_not_reached() macro in GLib. I prefer to fix the cause rather than initialize the variables to something bogus though: 2007-12-26 Tim-Philipp Müller <tim at centricular dot net> * gst/avi/gstavidemux.c: (gst_avi_demux_loop): * gst/wavparse/gstwavparse.c: (gst_wavparse_chain): * sys/ximage/gstximagesrc.c: (composite_pixel): Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (it's not really nice to abort in any case). Fixes #505745. Please re-open if that's not enough, thanks!