After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783031 - Build failure in GNOME Continuous
Build failure in GNOME Continuous
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal blocker
: ---
Assigned To: Fan, Chun-wei
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-24 09:22 UTC by Emmanuele Bassi (:ebassi)
Modified: 2017-05-24 18:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
modules/cairo-*-surface.cpp: Silence possibly unitialized warnings (3.04 KB, patch)
2017-05-24 14:09 UTC, Fan, Chun-wei
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2017-05-24 09:22:47 UTC
GJS fails to build after commit:

https://git.gnome.org/browse/gjs/commit/?id=bcd1f395801f6928c419a6bd99a35eb004be9e54

Error log:

../gjs/jsapi-util-args.h: In function 'bool gjs_cairo_ps_surface_constructor(JSContext*, unsigned int, JS::Value*)':
../gjs/jsapi-util-args.h:234:23: error: 'filename' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     g_free(*param_ref);
                       ^
../modules/cairo-ps-surface.cpp:42:11: note: 'filename' was declared here
     char *filename;
           ^
In file included from ../modules/cairo-svg-surface.cpp:26:0:
../gjs/jsapi-util-args.h: In function 'bool gjs_cairo_svg_surface_constructor(JSContext*, unsigned int, JS::Value*)':
../gjs/jsapi-util-args.h:234:23: error: 'filename' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     g_free(*param_ref);
                       ^
../modules/cairo-svg-surface.cpp:42:11: note: 'filename' was declared here
     char *filename;

Full build log:

http://build.gnome.org/continuous/buildmaster/builds/2017/05/24/13/build/log-gjs.txt

Tagged in GNOME Continuous.
Comment 1 Fan, Chun-wei 2017-05-24 14:09:06 UTC
Created attachment 352503 [details] [review]
modules/cairo-*-surface.cpp: Silence possibly unitialized warnings

Hi,

This is the simple patch to ensure that we don't get the variable-may-be-unitialized warnings.  This patch does successfully pass 'make distcheck' on my Ubuntu system.

With blessings, thank you!
Comment 2 Philip Chimento 2017-05-24 18:33:51 UTC
Review of attachment 352503 [details] [review]:

+1
Comment 3 Philip Chimento 2017-05-24 18:38:18 UTC
Thanks for the quick patch!