]> git.saurik.com Git - bison.git/commitdiff
* data/lalr1.cc (yyparse) [__GNUC__]: "Use" yyerrorlab to pacify
authorAkim Demaille <akim@epita.fr>
Wed, 27 Aug 2003 07:00:10 +0000 (07:00 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 27 Aug 2003 07:00:10 +0000 (07:00 +0000)
GCC warnings.

ChangeLog
data/lalr1.cc

index a7b160a562797a43a6dbe97e3f2a177d27901235..466d8de89753921a8248e79c65ee1a3164853c09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * config/announce-gen (print_changelog_deltas): Neutralize "<#" as
index c434c9bdddea2ba4d7d9bd28e0d90455cbb40248..4fe3c2ada7b6b68982f528fc03cf3032b5c27e35 100644 (file)
@@ -573,6 +573,13 @@ b4_syncline([@oline@], [@ofile@])[
 `---------------------------------------------------*/
 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_);
   semantic_stack_.pop (len_);
   location_stack_.pop (len_);