GNOME Bugzilla – Bug 503930
[cdda] warning: 'eos' may be used uninitialized in this function
Last modified: 2007-12-17 18:35:56 UTC
Building GStreamer for GNOME 2.22 I get the following error: Making all in cdda gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../gst-libs -I../../../gst-libs -pthread -I/opt/jhbuild/include/gstreamer-0.10 -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/opt/jhbuild/include/libxml2 -pthread -I/opt/jhbuild/include/gstreamer-0.10 -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/opt/jhbuild/include/libxml2 -Wall -Werror -g -DGST_DISABLE_DEPRECATED -ggdb3 -O2 -MT libgstcdda_0.10_la-gstcddabasesrc.lo -MD -MP -MF .deps/libgstcdda_0.10_la-gstcddabasesrc.Tpo -c gstcddabasesrc.c -fPIC -DPIC -o .libs/libgstcdda_0.10_la-gstcddabasesrc.o cc1: warnings being treated as errors gstcddabasesrc.c: In function 'gst_cdda_base_src_create': gstcddabasesrc.c:1495: warning: 'eos' may be used uninitialized in this function make[4]: *** [libgstcdda_0.10_la-gstcddabasesrc.lo] Fout 1 $ gcc --version gcc (GCC) 4.2.2 20071128 (prerelease) (4.2.2-2mdv2008.1)
I've fixed this one in CVS (hopefully), but I've got a feeling there might be more of those than just this one. Could you run $ make ERROR_CFLAGS='' 2>warnings.log and attach warnings.log? 2007-12-16 Tim-Philipp Müller <tim at centricular dot net> * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_do_seek), (gst_cdda_base_src_handle_track_seek), (gst_cdda_base_src_create): * gst-libs/gst/pbutils/install-plugins.c: (gst_install_plugins_spawn_child), (gst_install_plugins_supported): * gst-libs/gst/pbutils/missing-plugins.c: (gst_missing_plugin_message_get_installer_detail), (gst_missing_encoder_installer_detail_new): * gst-libs/gst/rtsp/gstrtspconnection.c: (gst_rtsp_connection_send): * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset): Turn a few g_assert_not_reached() into g_return_val_if_reached() to avoid compiler warnings (#503930).
I did not get any other warnings (for GStreamer stuff in jhbuild.. did not test things not in that.. e.g. the -bad stuff). Closing.