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 685399 - can't (skip) function with other warnings?
can't (skip) function with other warnings?
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-03 14:46 UTC by Dan Winship
Modified: 2015-02-07 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2012-10-03 14:46:35 UTC
The scanner complained:

nm-mobile-wizard.h:50: Warning: NMGtk: nma_mobile_wizard_new: argument cb: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async)
nm-mobile-wizard.h:50: Warning: NMGtk: nma_mobile_wizard_new: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip)

So I added:

/**
 * nma_mobile_wizard_new: (skip)
 */

and tried again, but still got exactly the same warnings. I had to do:

/**
 * nma_mobile_wizard_new: (skip)
 * @cb: (scope async)
 */

and then it accepted it without warnings
Comment 1 Colin Walters 2012-10-27 17:57:11 UTC
Can't reproduce; i added a test case here:

http://git.gnome.org/browse/gobject-introspection/commit/

What version of g-i were you using?   Is there a way to make that test case fail?
Comment 3 Dan Winship 2012-10-27 21:37:49 UTC
This was on F17 (and possibly with some weird unstable jhbuild gobject-introspection I guess...). It seems fixed in F18.
Comment 4 André Klapper 2015-02-07 17:01:16 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]