mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
* 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:
@@ -1,3 +1,11 @@
|
|||||||
|
2005-10-04 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2005-10-03 Juan Manuel Guerrero <juan.guerrero@gmx.de>
|
2005-10-03 Juan Manuel Guerrero <juan.guerrero@gmx.de>
|
||||||
|
|
||||||
* Makefile.am: DJGPP specific files added to EXTRA_DIST.
|
* Makefile.am: DJGPP specific files added to EXTRA_DIST.
|
||||||
|
|||||||
18
data/glr.c
18
data/glr.c
@@ -889,9 +889,9 @@ b4_syncline([@oline@], [@ofile@])
|
|||||||
static void
|
static void
|
||||||
yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
|
yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
|
||||||
{
|
{
|
||||||
/* `Use' the arguments. */
|
/* Suppress unused-variable warnings. */
|
||||||
(void) yy0;
|
yy0 = yy0;
|
||||||
(void) yy1;
|
yy1 = yy1;
|
||||||
|
|
||||||
switch (yyn)
|
switch (yyn)
|
||||||
{
|
{
|
||||||
@@ -1633,9 +1633,9 @@ static void
|
|||||||
yyreportAmbiguity (yySemanticOption* yyx0, yySemanticOption* yyx1,
|
yyreportAmbiguity (yySemanticOption* yyx0, yySemanticOption* yyx1,
|
||||||
yyGLRStack* yystack]b4_pure_formals[)
|
yyGLRStack* yystack]b4_pure_formals[)
|
||||||
{
|
{
|
||||||
/* `Unused' warnings. */
|
/* Suppress unused-variable warnings. */
|
||||||
(void) yyx0;
|
yyx0 = yyx0;
|
||||||
(void) yyx1;
|
yyx1 = yyx1;
|
||||||
|
|
||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
YYFPUTS ("Ambiguity detected.\nOption 1,\n", stderr);
|
YYFPUTS ("Ambiguity detected.\nOption 1,\n", stderr);
|
||||||
@@ -1847,9 +1847,9 @@ static void
|
|||||||
yyreportSyntaxError (yyGLRStack* yystack,
|
yyreportSyntaxError (yyGLRStack* yystack,
|
||||||
YYSTYPE* yylvalp, YYLTYPE* yyllocp]b4_user_formals[)
|
YYSTYPE* yylvalp, YYLTYPE* yyllocp]b4_user_formals[)
|
||||||
{
|
{
|
||||||
/* `Unused' warnings. */
|
/* Suppress unused-variable warnings. */
|
||||||
(void) yylvalp;
|
yylvalp = yylvalp;
|
||||||
(void) yyllocp;
|
yyllocp = yyllocp;
|
||||||
|
|
||||||
if (yystack->yyerrState == 0)
|
if (yystack->yyerrState == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -411,12 +411,12 @@ void
|
|||||||
yy::]b4_parser_class_name[::yysymprint_ (int yytype,
|
yy::]b4_parser_class_name[::yysymprint_ (int yytype,
|
||||||
const semantic_type* yyvaluep, const location_type* yylocationp)
|
const semantic_type* yyvaluep, const location_type* yylocationp)
|
||||||
{
|
{
|
||||||
/* Pacify ``unused variable'' warnings. */
|
|
||||||
(void) yyvaluep;
|
|
||||||
(void) yylocationp;
|
|
||||||
/* Backward compatibility, but should be removed eventually. */
|
/* Backward compatibility, but should be removed eventually. */
|
||||||
std::ostream& cdebug_ = *yycdebug_;
|
std::ostream& cdebug_ = *yycdebug_;
|
||||||
(void) cdebug_;
|
|
||||||
|
/* Suppress unused-variable warnings. */
|
||||||
|
if (false)
|
||||||
|
yysymprint_ (yytype + !&cdebug_, yyvaluep, yylocationp);
|
||||||
|
|
||||||
*yycdebug_ << (yytype < yyntokens_ ? "token" : "nterm")
|
*yycdebug_ << (yytype < yyntokens_ ? "token" : "nterm")
|
||||||
<< ' ' << yytname_[yytype] << " ("
|
<< ' ' << yytname_[yytype] << " ("
|
||||||
@@ -435,10 +435,9 @@ void
|
|||||||
yy::]b4_parser_class_name[::yydestruct_ (const char* yymsg,
|
yy::]b4_parser_class_name[::yydestruct_ (const char* yymsg,
|
||||||
int yytype, semantic_type* yyvaluep, location_type* yylocationp)
|
int yytype, semantic_type* yyvaluep, location_type* yylocationp)
|
||||||
{
|
{
|
||||||
/* Pacify ``unused variable'' warnings. */
|
/* Suppress unused-variable warnings. */
|
||||||
(void) yymsg;
|
if (false)
|
||||||
(void) yyvaluep;
|
yydestruct_ (yymsg, yytype, yyvaluep, yylocationp);
|
||||||
(void) yylocationp;
|
|
||||||
|
|
||||||
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
|
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user