summaryrefslogtreecommitdiff
path: root/giscanner/scannerlexer.l
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-02-27 08:53:48 -0500
committerColin Walters <walters@verbum.org>2014-02-27 13:17:29 -0500
commit6f25aae765cf68adac60c89a126f93dbb1aa2603 (patch)
tree0e1d8b825e91e2635baa753da4cdb2fd6447686d /giscanner/scannerlexer.l
parent938fa8f273e2e7ac6557d7f9e0daee545b8c18b7 (diff)
downloadgobject-introspection-6f25aae765cf68adac60c89a126f93dbb1aa2603.tar.gz
scanner: Ignore C11 _Noreturn keyword
This shows up in the headers in FreeBSD's stdlib. Now I didn't add anything to regress.h because I think that'd introduce an effective hard dependency on a C11-capable compiler, unless we used #ifdef trickery. But the problem with #ifdef is that the -expected.gir isn't conditional. https://bugzilla.gnome.org/show_bug.cgi?id=724851
Diffstat (limited to 'giscanner/scannerlexer.l')
-rw-r--r--giscanner/scannerlexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index d6903d46..941154d8 100644
--- a/giscanner/scannerlexer.l
+++ b/giscanner/scannerlexer.l
@@ -163,6 +163,7 @@ stringtext ([^\\\"])|(\\.)
"__inline__" { return INLINE; }
"__inline" { return INLINE; }
"__nonnull" { if (!parse_ignored_macro()) REJECT; }
+"_Noreturn" { /* Ignore */ }
"__signed__" { return SIGNED; }
"__restrict" { return RESTRICT; }
"__restrict__" { return RESTRICT; }