mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-24 03:33:03 +00:00
* data/glr.c (YYCHK1): Do not assume YYE is in range.
This avoids a diagnostic from gcc -Wswitch-enum. Problem reported by twlevo@xs4all.nl.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2005-09-09 Paul Eggert <eggert@cs.ucla.edu>
|
2005-09-09 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* data/glr.c (YYCHK1): Do not assume YYE is in range.
|
||||||
|
This avoids a diagnostic from gcc -Wswitch-enum.
|
||||||
|
Problem reported by twlevo@xs4all.nl.
|
||||||
|
|
||||||
* doc/bison.texinfo: Don't use "filename", as per GNU coding
|
* doc/bison.texinfo: Don't use "filename", as per GNU coding
|
||||||
standards. Use "file name" or "file" or "name", depending on
|
standards. Use "file name" or "file" or "name", depending on
|
||||||
the context.
|
the context.
|
||||||
|
|||||||
@@ -2024,7 +2024,7 @@ yyrecoverSyntaxError (yyGLRStack* yystack,
|
|||||||
#define YYCHK1(YYE) \
|
#define YYCHK1(YYE) \
|
||||||
do { \
|
do { \
|
||||||
switch (YYE) { \
|
switch (YYE) { \
|
||||||
default: \
|
case yyok: \
|
||||||
break; \
|
break; \
|
||||||
case yyabort: \
|
case yyabort: \
|
||||||
goto yyabortlab; \
|
goto yyabortlab; \
|
||||||
@@ -2032,6 +2032,8 @@ yyrecoverSyntaxError (yyGLRStack* yystack,
|
|||||||
goto yyacceptlab; \
|
goto yyacceptlab; \
|
||||||
case yyerr: \
|
case yyerr: \
|
||||||
goto yyuser_error; \
|
goto yyuser_error; \
|
||||||
|
default: \
|
||||||
|
goto yybuglab; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
@@ -2187,6 +2189,10 @@ b4_syncline([@oline@], [@ofile@])])dnl
|
|||||||
yyresult = 0;
|
yyresult = 0;
|
||||||
goto yyreturn;
|
goto yyreturn;
|
||||||
|
|
||||||
|
yybuglab:
|
||||||
|
YYASSERT (yyfalse);
|
||||||
|
/* Fall through. */
|
||||||
|
|
||||||
yyabortlab:
|
yyabortlab:
|
||||||
yyresult = 1;
|
yyresult = 1;
|
||||||
goto yyreturn;
|
goto yyreturn;
|
||||||
|
|||||||
Reference in New Issue
Block a user