aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/mate_grammar.lemon
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-12-14 23:44:25 +0000
committerGerald Combs <gerald@wireshark.org>2013-12-14 23:44:25 +0000
commit465e4664de8e9a03add62fbbfd8eb97af3bab958 (patch)
tree6e825137033d4c5f662423ed5d131ffc86e08943 /plugins/mate/mate_grammar.lemon
parent62d05c80ff2e1cda33556fce3bc528cb53550142 (diff)
Use "(void) <variable/>" to avoid unused variable warnings similar to
Qt's Q_UNUSED macro. svn path=/trunk/; revision=54110
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 }