* data/glr.c (yyuserMerge, yyreportAmbiguity, yyreportSyntaxError):

Use assignments rather than casts-to-void to suppress
unused-variable warnings.  This pacifies 'lint'.
* data/lalr1.cc (yysymprint_, yydestruct_): Use a call to suppress
unused-variable warnings.
This commit is contained in:
Paul Eggert
2005-10-05 06:05:22 +00:00
parent f8333ce5fd
commit 88c6637fa9
3 changed files with 24 additions and 17 deletions

View File

@@ -889,9 +889,9 @@ b4_syncline([@oline@], [@ofile@])
static void
yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
{
/* `Use' the arguments. */
(void) yy0;
(void) yy1;
/* Suppress unused-variable warnings. */
yy0 = yy0;
yy1 = yy1;
switch (yyn)
{
@@ -1633,9 +1633,9 @@ static void
yyreportAmbiguity (yySemanticOption* yyx0, yySemanticOption* yyx1,
yyGLRStack* yystack]b4_pure_formals[)
{
/* `Unused' warnings. */
(void) yyx0;
(void) yyx1;
/* Suppress unused-variable warnings. */
yyx0 = yyx0;
yyx1 = yyx1;
#if YYDEBUG
YYFPUTS ("Ambiguity detected.\nOption 1,\n", stderr);
@@ -1847,9 +1847,9 @@ static void
yyreportSyntaxError (yyGLRStack* yystack,
YYSTYPE* yylvalp, YYLTYPE* yyllocp]b4_user_formals[)
{
/* `Unused' warnings. */
(void) yylvalp;
(void) yyllocp;
/* Suppress unused-variable warnings. */
yylvalp = yylvalp;
yyllocp = yyllocp;
if (yystack->yyerrState == 0)
{