On Sat, 3 Dec 2005, Akim Demaille wrote:
How about this:
/* Suppress unused-variable warnings by "using" E. */
static int yyunused;
#define YYUSE(e) yyunused = (int*) &(e) && yyunused
That cast doesn't seem to serve much purpose. I'm not sure why I left it.
No unused variables (as long as YYUSE is used somewhere)
YYUSE(yyunused) :)
How oxymoronic.
Because of yysymprint() at least, I assumed YYUSE() would never go unused.
But I guess you never know where code evolution will take you.
Joel
_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison