aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/mate_grammar.lemon
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mate/mate_grammar.lemon')
-rw-r--r--plugins/mate/mate_grammar.lemon5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mate/mate_grammar.lemon b/plugins/mate/mate_grammar.lemon
index fdda2f22f6..f190014e60 100644
--- a/plugins/mate/mate_grammar.lemon
+++ b/plugins/mate/mate_grammar.lemon
@@ -178,7 +178,10 @@ static gchar* recolonize(mate_config* mc, gchar* s) {
%token_prefix TOKEN_
%token_type { gchar* }
-%token_destructor { if ($$) g_free($$); }
+%token_destructor {
+ (void) mc; /* Mark unused, similar to Q_UNUSED */
+ if ($$) g_free($$);
+}
%extra_argument { mate_config* mc }