mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
unused variables. * src/output.c (merger_output): static.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
2002-06-28 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
|
||||
unused variables.
|
||||
* src/output.c (merger_output): static.
|
||||
|
||||
2002-06-28 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
|
||||
* src/conflicts.c (conflicts_total_count): `i' is unsigned, to
|
||||
pacify GCC.
|
||||
* src/output.c (save_row): Initialize all the variables to pacify GCC.
|
||||
(merger_output): static.
|
||||
|
||||
2002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
|
||||
|
||||
|
||||
10
data/yacc.c
10
data/yacc.c
@@ -1265,6 +1265,11 @@ static void
|
||||
yydestruct (int yytype,
|
||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
||||
{
|
||||
/* Pacify ``unused variable'' warnings. */
|
||||
(void) yyvalue;
|
||||
b4_location_if([ (void) yylocation;
|
||||
])dnl
|
||||
|
||||
switch (yytype)
|
||||
{
|
||||
m4_map([b4_symbol_actions], m4_defn([b4_symbol_destructors]))dnl
|
||||
@@ -1283,6 +1288,11 @@ static void
|
||||
yysymprint (FILE* yyout, int yytype,
|
||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
||||
{
|
||||
/* Pacify ``unused variable'' warnings. */
|
||||
(void) yyvalue;
|
||||
b4_location_if([ (void) yylocation;
|
||||
])dnl
|
||||
|
||||
if (yytype < YYNTOKENS)
|
||||
{
|
||||
YYFPRINTF (yyout, "token %s (", yytname[[yytype]]);
|
||||
|
||||
@@ -660,7 +660,7 @@ actions_output (FILE *out)
|
||||
| Output the merge functions to OUT. |
|
||||
`--------------------------------------*/
|
||||
|
||||
void
|
||||
static void
|
||||
merger_output (FILE *out)
|
||||
{
|
||||
int n;
|
||||
|
||||
@@ -236,7 +236,7 @@ typedef union {
|
||||
char *string;
|
||||
associativity assoc;
|
||||
} yystype;
|
||||
/* Line 272 of /home/cs/hilfingr/work/grammars/glr2/install/share/bison/yacc.c. */
|
||||
/* Line 272 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
|
||||
#line 241 "parse-gram.c"
|
||||
# define YYSTYPE yystype
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
@@ -257,7 +257,7 @@ typedef struct yyltype
|
||||
/* Copy the second part of user declarations. */
|
||||
|
||||
|
||||
/* Line 292 of /home/cs/hilfingr/work/grammars/glr2/install/share/bison/yacc.c. */
|
||||
/* Line 292 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
|
||||
#line 262 "parse-gram.c"
|
||||
|
||||
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
||||
@@ -1520,7 +1520,7 @@ yyreduce:
|
||||
|
||||
}
|
||||
|
||||
/* Line 1040 of /home/cs/hilfingr/work/grammars/glr2/install/share/bison/yacc.c. */
|
||||
/* Line 1040 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
|
||||
#line 1525 "parse-gram.c"
|
||||
|
||||
yyvsp -= yylen;
|
||||
@@ -1748,6 +1748,10 @@ static void
|
||||
yydestruct (int yytype,
|
||||
YYSTYPE yyvalue, YYLTYPE yylocation)
|
||||
{
|
||||
/* Pacify ``unused variable'' warnings. */
|
||||
(void) yyvalue;
|
||||
(void) yylocation;
|
||||
|
||||
switch (yytype)
|
||||
{
|
||||
default:
|
||||
@@ -1765,6 +1769,10 @@ static void
|
||||
yysymprint (FILE* yyout, int yytype,
|
||||
YYSTYPE yyvalue, YYLTYPE yylocation)
|
||||
{
|
||||
/* Pacify ``unused variable'' warnings. */
|
||||
(void) yyvalue;
|
||||
(void) yylocation;
|
||||
|
||||
if (yytype < YYNTOKENS)
|
||||
{
|
||||
YYFPRINTF (yyout, "token %s (", yytname[yytype]);
|
||||
|
||||
@@ -111,7 +111,7 @@ typedef union {
|
||||
char *string;
|
||||
associativity assoc;
|
||||
} yystype;
|
||||
/* Line 1343 of /home/cs/hilfingr/work/grammars/glr2/install/share/bison/yacc.c. */
|
||||
/* Line 1353 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
|
||||
#line 116 "y.tab.h"
|
||||
# define YYSTYPE yystype
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user