GNOME Bugzilla – Bug 596313
gstv4lelement.c:168: error: ‘client’ may be used uninitialized in this function
Last modified: 2009-10-07 09:39:21 UTC
cc1: warnings being treated as errors gstv4lelement.c: In function ‘gst_v4l_class_probe_devices_with_udev’: gstv4lelement.c:168: error: ‘client’ may be used uninitialized in this function make[3]: *** [libgstvideo4linux_la-gstv4lelement.lo] 오류 1 make[2]: *** [all-recursive] 오류 1 make[1]: *** [all-recursive] 오류 1 make: *** [all] 오류 2 *** Error during phase build of gst-plugins-base: ########## Error running make *** [61/233] maybe client = g_udev_client_new (NULL); if (!client) { GST_WARNING ("Failed to initialize gudev client"); goto finish; } finish: if (client) { g_object_unref (client); } in goto finish client may be used uninitialized?
can i remove -Werror option? my jhbuild set -Werror option .why?
Because that's the default we use when building from git. You can do make ERROR_CFLAGS='' to build without the -Werror.
Created attachment 144001 [details] [review] v4l: fix compiler warning This should fix it. Will push once -base is unfrozen again.
thanks for quick answer :)
Pushed: commit a039d3a1a6c649b8a8496bf60066c48272551d47 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Fri Sep 25 15:32:18 2009 +0100 v4l: fix compiler warning Fix 'variable may be used uninitialized' compiler warning (which is true in theory, but can't actually ever happen, since we always call the function with check=FALSE). Fixes #596313.