GNOME Bugzilla – Bug 784458
Warning messages when parsing macOS header files
Last modified: 2018-01-30 13:28:09 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.
I have compiled and tested the patch to confirm that it does indeed fix the problem.
Any objections to picking up this patch?
Review of attachment 354807 [details] [review]: Okay
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).
*** Bug 782365 has been marked as a duplicate of this bug. ***