summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2009-12-26 15:32:20 +0100
committerJohan Dahlin <johan@gnome.org>2009-12-31 15:58:03 +0100
commitb20b019737118778666b1b9b75ea5d33b7880d58 (patch)
tree6dd67246e151a6c39e13d6e63c2a86affd56a0c2 /giscanner
parent0057bd81165e93b1cfd2b350759766ecb9140e36 (diff)
downloadgobject-introspection-b20b019737118778666b1b9b75ea5d33b7880d58.tar.gz
__extension__ can be put in front of expressions
glib uses __extension__ in macros dealing with 64 bits integer such as GUINT64_SWAP_LE_BE(). To quote the GCC manual: `-pedantic' and other options cause warnings for many GNU C extensions. You can prevent such warnings within one expression by writing `__extension__' before the expression. https://bugzilla.gnome.org/show_bug.cgi?id=605779
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/scannerparser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index 7b18f941..b38fb892 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -534,6 +534,7 @@ assignment_operator
expression
: assignment_expression
| expression ',' assignment_expression
+ | EXTENSION expression
{
$$ = gi_source_symbol_new (CSYMBOL_TYPE_INVALID);
}