[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: lalr1.cc: goto yyerrorlab
From: |
Akim Demaille |
Subject: |
FYI: lalr1.cc: goto yyerrorlab |
Date: |
Wed, 27 Aug 2003 09:02:57 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* data/lalr1.cc (yyparse) [__GNUC__]: "Use" yyerrorlab to pacify
GCC warnings.
Index: data/lalr1.cc
===================================================================
RCS file: /cvsroot/bison/bison/data/lalr1.cc,v
retrieving revision 1.41
diff -u -u -r1.41 lalr1.cc
--- data/lalr1.cc 26 Aug 2003 05:21:41 -0000 1.41
+++ data/lalr1.cc 27 Aug 2003 06:59:48 -0000
@@ -573,6 +573,13 @@
`---------------------------------------------------*/
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_);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: lalr1.cc: goto yyerrorlab,
Akim Demaille <=