GNOME Bugzilla – Bug 665249
Fix compiler warnings
Last modified: 2015-02-07 16:44:06 UTC
A quick two fixes. See patches.
Created attachment 202483 [details] [review] gibaseinfo: Fix compiler warnings g_slice_free complains when you pass it a pointer of a different type than it was expecting, like it should.
Created attachment 202484 [details] [review] gitypelib: Fix compiler warnings These variables are unused.
Review of attachment 202483 [details] [review]: Looks right.
Review of attachment 202484 [details] [review]: Hm, they were clearly used for something before... It looks like the is_method variable's use was removed in: commit efbd75f72262e0194528e00508fb528497f58845 Author: Colin Walters <walters@src.gnome.org> Date: Thu Oct 2 21:24:20 2008 +0000 Merge branch 'bug552961-methods/wip' svn path=/trunk/; revision=647 Looking at the bug...yeah, we don't need it anymore. But I'd like to see a bit of research like this, sometimes unused variables are unused because of a bug or a bad merge, etc.
For reference, a quick: git log -S 'if (is_method' was likely to turn this kind of thing up.
Attachment 202483 [details] pushed as b845f9d - gibaseinfo: Fix compiler warnings Attachment 202484 [details] pushed as 8b460b3 - gitypelib: Fix compiler warnings
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]