GNOME Bugzilla – Bug 626002
dconf.vala:66.3-93.10: error: missing break statement at end of switch section
Last modified: 2010-08-23 14:15:56 UTC
Created attachment 167098 [details] [review] add break statement building dconf failed saying ... ln -fs libdconf.so.0 libdconf.so GISCAN dconf-0.3.gir GICOMP dconf-0.3.gir GEN dconf.deps make[1]: Leaving directory `/d2/gnome-shell/source/dconf/client' Making all in bin make[1]: Entering directory `/d2/gnome-shell/source/dconf/bin' VALAC dconf_vala.stamp dconf.vala:66.3-93.10: error: missing break statement at end of switch section Compilation failed: 1 error(s), 0 warning(s) make[1]: *** [dconf_vala.stamp] Error 1 make[1]: Leaving directory `/d2/gnome-shell/source/dconf/bin' make: *** [all-recursive] Error 1 ... I'm using vala - 0.9.4. Works after adding the break statement.
commit 66dcd38beb93f8c2051b5318508515e396b0e5dd Author: Richard Hughes <richard@hughsie.com> Date: Wed Aug 4 10:47:14 2010 +0100 Fix a trivial compile error when using vala 0.9.4. Fixes bgo#626002
oh this bug is very obnoxious. i *just* removed that 'break;' statement due to the new vala compiler complaining of it being unreachable *sigh*.
actually, I'm reopening this. Although it would have been nice to have this fix for the just-released tarballs, probably the git version should do the thing that matches with the Vala git version...
(on Vala) commit 97d4e19869293963b3b5da6f3d5ce3fcded96349 Author: Luca Bruno <lethalman88@gmail.com> Date: Fri Jul 30 00:08:35 2010 -0700 glib-2.0: Add [NoReturn] to GLib.error.
okay. I bumped our vala depend and reverted the commit made by Richard everything should be good now.