* data/lalr1.cc (yyparse) [__GNUC__]: "Use" yyerrorlab to pacify

GCC warnings.
This commit is contained in:
Akim Demaille
2003-08-27 07:00:10 +00:00
parent 89e1cc61b7
commit 62b6aef925
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2003-08-27 Akim Demaille <akim@epita.fr>
* data/lalr1.cc (yyparse) [__GNUC__]: "Use" yyerrorlab to pacify
GCC warnings.
2003-08-26 Akim Demaille <akim@epita.fr> 2003-08-26 Akim Demaille <akim@epita.fr>
* config/announce-gen (print_changelog_deltas): Neutralize "<#" as * config/announce-gen (print_changelog_deltas): Neutralize "<#" as

View File

@@ -573,6 +573,13 @@ b4_syncline([@oline@], [@ofile@])[
`---------------------------------------------------*/ `---------------------------------------------------*/
yyerrorlab: yyerrorlab:
#ifdef __GNUC__
/* Pacify GCC when the user code never invokes YYERROR and the label
yyerrorlab therefore never appears in user code. */
if (0)
goto yyerrorlab;
#endif
state_stack_.pop (len_); state_stack_.pop (len_);
semantic_stack_.pop (len_); semantic_stack_.pop (len_);
location_stack_.pop (len_); location_stack_.pop (len_);