mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +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>
|
2002-06-28 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
|
* src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
|
||||||
* src/conflicts.c (conflicts_total_count): `i' is unsigned, to
|
* src/conflicts.c (conflicts_total_count): `i' is unsigned, to
|
||||||
pacify GCC.
|
pacify GCC.
|
||||||
* src/output.c (save_row): Initialize all the variables 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>
|
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,
|
yydestruct (int yytype,
|
||||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
||||||
{
|
{
|
||||||
|
/* Pacify ``unused variable'' warnings. */
|
||||||
|
(void) yyvalue;
|
||||||
|
b4_location_if([ (void) yylocation;
|
||||||
|
])dnl
|
||||||
|
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
m4_map([b4_symbol_actions], m4_defn([b4_symbol_destructors]))dnl
|
m4_map([b4_symbol_actions], m4_defn([b4_symbol_destructors]))dnl
|
||||||
@@ -1283,6 +1288,11 @@ static void
|
|||||||
yysymprint (FILE* yyout, int yytype,
|
yysymprint (FILE* yyout, int yytype,
|
||||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
||||||
{
|
{
|
||||||
|
/* Pacify ``unused variable'' warnings. */
|
||||||
|
(void) yyvalue;
|
||||||
|
b4_location_if([ (void) yylocation;
|
||||||
|
])dnl
|
||||||
|
|
||||||
if (yytype < YYNTOKENS)
|
if (yytype < YYNTOKENS)
|
||||||
{
|
{
|
||||||
YYFPRINTF (yyout, "token %s (", yytname[[yytype]]);
|
YYFPRINTF (yyout, "token %s (", yytname[[yytype]]);
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ actions_output (FILE *out)
|
|||||||
| Output the merge functions to OUT. |
|
| Output the merge functions to OUT. |
|
||||||
`--------------------------------------*/
|
`--------------------------------------*/
|
||||||
|
|
||||||
void
|
static void
|
||||||
merger_output (FILE *out)
|
merger_output (FILE *out)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ typedef union {
|
|||||||
char *string;
|
char *string;
|
||||||
associativity assoc;
|
associativity assoc;
|
||||||
} yystype;
|
} 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"
|
#line 241 "parse-gram.c"
|
||||||
# define YYSTYPE yystype
|
# define YYSTYPE yystype
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
@@ -257,7 +257,7 @@ typedef struct yyltype
|
|||||||
/* Copy the second part of user declarations. */
|
/* 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"
|
#line 262 "parse-gram.c"
|
||||||
|
|
||||||
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
#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"
|
#line 1525 "parse-gram.c"
|
||||||
|
|
||||||
yyvsp -= yylen;
|
yyvsp -= yylen;
|
||||||
@@ -1748,6 +1748,10 @@ static void
|
|||||||
yydestruct (int yytype,
|
yydestruct (int yytype,
|
||||||
YYSTYPE yyvalue, YYLTYPE yylocation)
|
YYSTYPE yyvalue, YYLTYPE yylocation)
|
||||||
{
|
{
|
||||||
|
/* Pacify ``unused variable'' warnings. */
|
||||||
|
(void) yyvalue;
|
||||||
|
(void) yylocation;
|
||||||
|
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
@@ -1765,6 +1769,10 @@ static void
|
|||||||
yysymprint (FILE* yyout, int yytype,
|
yysymprint (FILE* yyout, int yytype,
|
||||||
YYSTYPE yyvalue, YYLTYPE yylocation)
|
YYSTYPE yyvalue, YYLTYPE yylocation)
|
||||||
{
|
{
|
||||||
|
/* Pacify ``unused variable'' warnings. */
|
||||||
|
(void) yyvalue;
|
||||||
|
(void) yylocation;
|
||||||
|
|
||||||
if (yytype < YYNTOKENS)
|
if (yytype < YYNTOKENS)
|
||||||
{
|
{
|
||||||
YYFPRINTF (yyout, "token %s (", yytname[yytype]);
|
YYFPRINTF (yyout, "token %s (", yytname[yytype]);
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ typedef union {
|
|||||||
char *string;
|
char *string;
|
||||||
associativity assoc;
|
associativity assoc;
|
||||||
} yystype;
|
} 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"
|
#line 116 "y.tab.h"
|
||||||
# define YYSTYPE yystype
|
# define YYSTYPE yystype
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user