summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/scannerparser.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index 182c69d3..7ce02365 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -791,6 +791,9 @@ declaration
}
;
+empty_declaration
+ : ';'
+
declaration_specifiers
: storage_class_specifier declaration_specifiers
{
@@ -1459,6 +1462,7 @@ translation_unit
external_declaration
: function_definition
| declaration
+ | empty_declaration
| macro
;