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 784458 - Warning messages when parsing macOS header files
Warning messages when parsing macOS header files
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 782365 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-07-02 22:54 UTC by David Lechner
Modified: 2018-01-30 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix bug (1021 bytes, patch)
2017-07-02 22:54 UTC, David Lechner
committed Details | Review

Description David Lechner 2017-07-02 22:54:36 UTC
Created attachment 354807 [details] [review]
Patch to fix bug

I'm running g-ir-scanner on macOS 10.12 / XCode 8 and getting a bunch of warnings printed:

/usr/include/signal.h:79: syntax error, unexpected identifier, expecting ')' in 'void (* _Nullable bsd_signal(int, void
(* _Nullable)(int)))(int);' at 'bsd_signal'
/usr/include/signal.h:79: syntax error, unexpected ')', expecting ',' or ';' in 'void (* _Nullable bsd_signal(int, void
(* _Nullable)(int)))(int);' at ')'
/usr/include/signal.h:99: syntax error, unexpected identifier, expecting ')' in 'void (* _Nullable sigset(int, void (* _
Nullable)(int)))(int);' at 'sigset'
/usr/include/signal.h:99: syntax error, unexpected ')', expecting ',' or ';' in 'void (* _Nullable sigset(int, void (* _
Nullable)(int)))(int);' at ')'
...



This is caused by new type qualifiers introduced in XCode 7.
Comment 1 David Lechner 2017-07-02 22:56:35 UTC
I have compiled and tested the patch to confirm that it does indeed fix the problem.
Comment 2 David Lechner 2017-08-30 17:47:57 UTC
Any objections to picking up this patch?
Comment 3 Emmanuele Bassi (:ebassi) 2017-08-30 17:50:52 UTC
Review of attachment 354807 [details] [review]:

Okay
Comment 4 Rico Tzschichholz 2017-09-03 09:13:11 UTC
commit 6c2d572a34f6240898a2dfb07eb80a50d2a4e59b
Author: David Lechner <david@lechnology.com>
Date:   Sun Jul 2 17:42:30 2017 -0500

    Ignore _Nonnull,_Nullable and _Null_unspecified type qualifiers
    
    These qualifiers are present in header files on macOS (introduced in
    XCode 7).
Comment 5 Emmanuele Bassi (:ebassi) 2018-01-30 13:28:09 UTC
*** Bug 782365 has been marked as a duplicate of this bug. ***