]> git.saurik.com Git - bison.git/commitdiff
* data/glr.c (yyuserAction): Add "default: break;" case to pacify
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2005 09:33:57 +0000 (09:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2005 09:33:57 +0000 (09:33 +0000)
gcc -Wswitch-default.
* data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise.
* data/yacc.c (yyparse): Likewise.

ChangeLog
data/glr.c
data/lalr1.cc
data/yacc.c

index d6c35514af5703fc561be1a3f182f9c5263347d7..629606d2b32232d771714833174ed2f4ef9a9ca9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * data/glr.c (yyuserAction): Add "default: break;" case to pacify
+       gcc -Wswitch-default.
+       * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise.
+       * data/yacc.c (yyparse): Likewise.
+
 2005-01-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        * src/system.h (OUTPUT_EXT, TAB_EXT): Define only if not defined
index eb2a42ecc60c97887a06df6e97c77c317fd79fb3..0a0638a351d82d693cefb116bc95fa273188af38 100644 (file)
@@ -737,6 +737,7 @@ yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
   switch (yyn)
     {
       b4_actions
+      default: break;
     }
 
   return yyok;
index 746054beba489ef0c2f903396aa783431e46ca93..c613b3c89022fc2d98a0d93a85934911d04f5259 100644 (file)
@@ -679,6 +679,7 @@ yyreduce:
   switch (yyn_)
     {
       ]b4_actions[
+      default: break;
     }
 
 ]/* Line __line__ of lalr1.cc.  */
index bd2d2c28918f9c6034657959db3d55069cd55e1c..792de0945273d848cce860db56b56f80a785ca75 100644 (file)
@@ -1033,6 +1033,7 @@ yyreduce:
   switch (yyn)
     ]{
       b4_actions
+      default: break;
     }
 
 /* Line __line__ of yacc.c.  */