]> git.saurik.com Git - bison.git/commit - data/glr.c
skeletons: simplify the protections against "unused" warnings.
authorAkim Demaille <demaille@gostai.com>
Thu, 9 Feb 2012 13:02:22 +0000 (14:02 +0100)
committerAkim Demaille <demaille@gostai.com>
Fri, 10 Feb 2012 08:17:44 +0000 (09:17 +0100)
commitbeadb220d541df706f9e27997c3942433550620c
tree5f1865a3849b1dc2a9af6a93c61c3eaef6c30b01
parentf86a7807856ff90a0d4bd25473544121821b9c19
skeletons: simplify the protections against "unused" warnings.

* data/c.m4 (b4_parse_param_use): Also accept optional arguments
to "use".
Simplify callers.
* data/glr.c (yyuserAction): Simplify use of b4_parse_param_use.
(yy_reduce_print): Don't use b4_parse_param_use, as all the arguments
_are_ used.
* data/lalr1.cc (YY_SYMBOL_PRINT): Even when disabled, "use" the
symbol argument.
This neutralizes a warning in yypush_ when there are no symbols
with a semantic values.
(yy_destroy_): Remove useless "use" of yymsg.
data/c.m4
data/glr.c
data/lalr1.cc