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 783465 - Bijiben (tarball) failes to build, error: this statement may fall through [-Werror=implicit-fallthrough=]
Bijiben (tarball) failes to build, error: this statement may fall through [-W...
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-06-06 08:26 UTC by Bjørn Lie
Modified: 2017-06-11 18:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
main-toolbar: Missing break in case statement (896 bytes, patch)
2017-06-11 18:34 UTC, Isaque Galdino
committed Details | Review

Description Bjørn Lie 2017-06-06 08:26:12 UTC
[   45s] make[4]: Entering directory '/home/abuild/rpmbuild/BUILD/bijiben-3.24.0/src'
[   45s]   CC       bijiben-bjb-bijiben.o
[   45s]   CC       bijiben-bjb-app-menu.o
[   45s]   CC       bijiben-bjb-color-button.o
[   45s]   CC       bijiben-bjb-controller.o
[   45s]   CC       bijiben-bjb-debug.o
[   46s]   CC       bijiben-bjb-editor-toolbar.o
[   46s]   CC       bijiben-bjb-empty-results-box.o
[   46s]   CC       bijiben-bjb-import-dialog.o
[   46s]   CC       bijiben-bjb-load-more-button.o
[   46s]   CC       bijiben-bjb-main.o
[   47s]   CC       bijiben-bjb-main-toolbar.o
[   47s]   CC       bijiben-bjb-main-view.o
[   47s]   CC       bijiben-bjb-note-view.o
[   47s]   CC       bijiben-bjb-organize-dialog.o
[   47s] bjb-main-toolbar.c: In function 'bjb_main_toolbar_get_property':
[   47s] bjb-main-toolbar.c:1133:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   47s]        g_value_set_object (value, self->priv->parent);
[   47s]        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   47s] bjb-main-toolbar.c:1134:5: note: here
[   47s]      default:
[   47s]      ^~~~~~~
[   48s] cc1: all warnings being treated as errors
[   48s] make[4]: *** [Makefile:900: bijiben-bjb-main-toolbar.o] Error 1
[   48s] make[4]: *** Waiting for unfinished jobs....


This must be a recent change as I have a gitcheckout from changesrevision">1778d9e68b17515946218d97f36a4f912fdc2ef8
that builds fine.

GCC7 is the compiler used here.
Comment 1 Bjørn Lie 2017-06-06 08:36:04 UTC
Ah.. right - I was passing --disable-Werror in the gitcheckout, so scratch the info that a recent build passes.

I see the tarball builds alwell when passing --disable-Werror to configure, but I assume that should not be needed?
Comment 2 Bjørn Lie 2017-06-06 08:53:26 UTC
implicit-fallthrough is a new gcc7 warning/error, so if one is using gcc6 or older, one would probably get the tarball to build just fine.
Comment 3 Isaque Galdino 2017-06-11 18:34:22 UTC
Created attachment 353573 [details] [review]
main-toolbar: Missing break in case statement

gcc7 is complainting about an implicit-fallthrough situation: a missing
break in a case statement.

This commit adds that to the code.
Comment 4 Isaque Galdino 2017-06-11 18:35:11 UTC
Review of attachment 353573 [details] [review]:

Pushed to master.