mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Remove a lot of warnings compiling parse.cpp with GCC 4.2.3
This commit is contained in:
parent
e06cf223dd
commit
ac1cfe49a8
4
extern/btyacc/output.c
vendored
4
extern/btyacc/output.c
vendored
@ -934,7 +934,7 @@ void output_debug()
|
||||
fprintf(output_file, "#if YYDEBUG\n");
|
||||
if (!rflag)
|
||||
fprintf(output_file, "static ");
|
||||
fprintf(output_file, "char *yyname[] = {");
|
||||
fprintf(output_file, "const char *yyname[] = {");
|
||||
j = 80;
|
||||
for (i = 0; i <= max; ++i)
|
||||
{
|
||||
@ -1062,7 +1062,7 @@ void output_debug()
|
||||
if (!rflag) ++outline;
|
||||
if (!rflag)
|
||||
fprintf(output_file, "static ");
|
||||
fprintf(output_file, "char *yyrule[] = {\n");
|
||||
fprintf(output_file, "const char *yyrule[] = {\n");
|
||||
for (i = 2; i < nrules; ++i)
|
||||
{
|
||||
fprintf(output_file, "\"%s :", symbol_name[rlhs[i]]);
|
||||
|
@ -37,8 +37,8 @@ extern _C_ Yshort yycheck[];
|
||||
extern _C_ Yshort yyctable[];
|
||||
|
||||
#if YYDEBUG
|
||||
extern _C_ char *yyname[];
|
||||
extern _C_ char *yyrule[];
|
||||
extern _C_ const char *yyname[];
|
||||
extern _C_ const char *yyrule[];
|
||||
#endif
|
||||
|
||||
%% header
|
||||
@ -174,7 +174,7 @@ int Parser::parseAux()
|
||||
int reduce_posn;
|
||||
|
||||
#if YYDEBUG
|
||||
char *yys;
|
||||
const char *yys;
|
||||
|
||||
if ((yys = getenv("YYDEBUG"))) {
|
||||
yyn = *yys;
|
||||
|
Loading…
Reference in New Issue
Block a user