ports/devel/gobject-introspection/files/patch-giscanner_scannerlexer.l
Koop Mast e66600954e Fix __asm volatile warnings from g-ir-scanner.
Take patch from pkgsrc because the PR patch isn't complete.

PR:		ports/181367
Submitted by:	Takeshi Taguchi <taguchi@ff.iij4u.or.jp>
Obtained from:	NetBSD pkgsrc
2013-08-18 15:37:57 +00:00

25 lines
1.1 KiB
Text

$NetBSD: patch-giscanner_scannerlexer.l,v 1.2 2013/05/05 09:20:44 drochner Exp $
Ignore __asm volatile as per PR pkg/46017
https://bugzilla.gnome.org/show_bug.cgi?id=678794
--- giscanner/scannerlexer.l.orig 2012-12-18 16:27:16.000000000 +0000
+++ giscanner/scannerlexer.l
@@ -134,6 +134,8 @@ stringtext ([^\\\"])|(\\.)
"," { return ','; }
"->" { return ARROW; }
+"__asm"[\t\f\v\r ]+"volatile" { if (!parse_ignored_macro()) REJECT; }
+"__asm__"[\t\f\v\r ]+"volatile" { if (!parse_ignored_macro()) REJECT; }
"__asm" { if (!parse_ignored_macro()) REJECT; }
"__asm__" { if (!parse_ignored_macro()) REJECT; }
"__attribute__" { if (!parse_ignored_macro()) REJECT; }
@@ -145,6 +147,8 @@ stringtext ([^\\\"])|(\\.)
"__signed__" { return SIGNED; }
"__restrict" { return RESTRICT; }
"__typeof" { if (!parse_ignored_macro()) REJECT; }
+"__volatile" { if (!parse_ignored_macro()) REJECT; }
+"__volatile__" { if (!parse_ignored_macro()) REJECT; }
"_Bool" { return BOOL; }
"G_GINT64_CONSTANT" { return INTL_CONST; }