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 746232 - Warn when optional is used on a non-out parameter
Warn when optional is used on a non-out parameter
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-03-15 07:08 UTC by Garrett Regier
Modified: 2018-02-08 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Garrett Regier 2015-03-15 07:08:51 UTC
When the optional annotation is specified for non-out parameter a warning is not emitted and the annotation is written to the .gir.

In the case of specifying it on return values it is completely ignored, a warning is not emitted and it is not written to the .gir.
Comment 1 Emmanuele Bassi (:ebassi) 2018-01-25 16:37:55 UTC
Would it be possible for you to write a patch? That would be much appreciated.
Comment 2 GNOME Infrastructure Team 2018-02-08 12:33:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/128.