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 653214 - warning when getting "last-codepoint" property of GucharmapBlockCodepointList
warning when getting "last-codepoint" property of GucharmapBlockCodepointList
Status: RESOLVED FIXED
Product: gucharmap
Classification: Core
Component: general
git master
Other Linux
: Normal trivial
: ---
Assigned To: gucharmap maintainers
gucharmap maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-23 06:52 UTC by Daiki Ueno
Modified: 2011-09-12 19:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix warning (866 bytes, patch)
2011-06-23 06:53 UTC, Daiki Ueno
none Details | Review

Description Daiki Ueno 2011-06-23 06:52:15 UTC
I got the following warning:

 WARNING **: gucharmap-block-codepoint-list.c:139: invalid property id 2 for "last-codepoint" of type `GParamUInt' in `GucharmapBlockCodepointList'

when my code does:

 GucharmapBlockCodepointList codepoint_list = ...;
 g_object_get (codepoint_list, "last-codepoint", &cp, NULL);

This is due to a missing switch-break statement.  Patch attached.
Comment 1 Daiki Ueno 2011-06-23 06:53:30 UTC
Created attachment 190499 [details] [review]
patch to fix warning
Comment 2 Christian Persch 2011-06-23 09:39:44 UTC
Thanks! Please commit to master and gnome-3-0 branch.
Comment 3 Daiki Ueno 2011-08-03 08:14:06 UTC
(In reply to comment #2)
> Thanks! Please commit to master and gnome-3-0 branch.

Sorry for that I missed the response, but I don't have git account there.
Could anyone please commit?
Comment 4 Christian Persch 2011-09-12 19:33:44 UTC
Fixed on master and gnome-3-0.