mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
* data/yacc.c (yyparse): Wrap the final return from yyparse inside YYID
to make sure that YYID will never be unused. This fixes a 'make maintainer-check' failure caused by the recent changes to the 'Trivial grammars' test case, which caused g++ 4.1.0 to complain that YYID was not used. * data/glr.c (yyparse): Wrap yyparse's return inside YYID just in case.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2006-05-21 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
* data/yacc.c (yyparse): Wrap the final return from yyparse inside YYID
|
||||||
|
to make sure that YYID will never be unused. This fixes a 'make
|
||||||
|
maintainer-check' failure caused by the recent changes to the 'Trivial
|
||||||
|
grammars' test case, which caused g++ 4.1.0 to complain that YYID was
|
||||||
|
not used.
|
||||||
|
* data/glr.c (yyparse): Wrap yyparse's return inside YYID just in case.
|
||||||
|
|
||||||
2006-05-21 Joel E. Denny <jdenny@ces.clemson.edu>
|
2006-05-21 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
* data/glr.c (yyresolveLocations): Remove bogus YYASSERT that the
|
* data/glr.c (yyresolveLocations): Remove bogus YYASSERT that the
|
||||||
|
|||||||
@@ -2523,7 +2523,8 @@ b4_syncline([@oline@], [@ofile@])])dnl
|
|||||||
yyfreeGLRStack (&yystack);
|
yyfreeGLRStack (&yystack);
|
||||||
}
|
}
|
||||||
|
|
||||||
return yyresult;
|
/* Make sure YYID is used. */
|
||||||
|
return YYID (yyresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DEBUGGING ONLY */
|
/* DEBUGGING ONLY */
|
||||||
|
|||||||
@@ -1480,7 +1480,8 @@ yyreturn:
|
|||||||
if (yymsg != yymsgbuf)
|
if (yymsg != yymsgbuf)
|
||||||
YYSTACK_FREE (yymsg);
|
YYSTACK_FREE (yymsg);
|
||||||
#endif
|
#endif
|
||||||
return yyresult;
|
/* Make sure YYID is used. */
|
||||||
|
return YYID (yyresult);
|
||||||
]}
|
]}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user