* 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.
This commit is contained in:
Paul Eggert
2005-01-17 09:33:57 +00:00
parent d229d15c76
commit 95f22ad2a7
4 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -737,6 +737,7 @@ yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
switch (yyn)
{
b4_actions
default: break;
}
return yyok;

View File

@@ -679,6 +679,7 @@ yyreduce:
switch (yyn_)
{
]b4_actions[
default: break;
}
]/* Line __line__ of lalr1.cc. */

View File

@@ -1033,6 +1033,7 @@ yyreduce:
switch (yyn)
]{
b4_actions
default: break;
}
/* Line __line__ of yacc.c. */