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 752065 - Warn and ignore on incorrect optional/nullable/allow-none annotations
Warn and ignore on incorrect optional/nullable/allow-none annotations
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
2.43.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-07-07 12:09 UTC by Garrett Regier
Modified: 2015-10-04 16:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scanner: Warn and ignore on incorrect optional/nullable/allow-none annotations (5.31 KB, patch)
2015-07-07 12:10 UTC, Garrett Regier
accepted-commit_now Details | Review

Description Garrett Regier 2015-07-07 12:09:00 UTC
These can be easily misunderstood, especially optional as devs tend to think it means default-value.
Comment 1 Garrett Regier 2015-07-07 12:10:39 UTC
Created attachment 307002 [details] [review]
scanner: Warn and ignore on incorrect optional/nullable/allow-none annotations

This uses _is_pointer_type() from the patch for bug 752047.
Comment 2 Colin Walters 2015-10-04 16:20:37 UTC
Review of attachment 307002 [details] [review]:

LGTM, thanks!