From 95f22ad2a777be59535616142910f8914dac6f26 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Jan 2005 09:33:57 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ data/glr.c | 1 + data/lalr1.cc | 1 + data/yacc.c | 1 + 4 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index d6c35514..629606d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-17 Paul Eggert + + * 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 * src/system.h (OUTPUT_EXT, TAB_EXT): Define only if not defined diff --git a/data/glr.c b/data/glr.c index eb2a42ec..0a0638a3 100644 --- a/data/glr.c +++ b/data/glr.c @@ -737,6 +737,7 @@ yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp, switch (yyn) { b4_actions + default: break; } return yyok; diff --git a/data/lalr1.cc b/data/lalr1.cc index 746054be..c613b3c8 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -679,6 +679,7 @@ yyreduce: switch (yyn_) { ]b4_actions[ + default: break; } ]/* Line __line__ of lalr1.cc. */ diff --git a/data/yacc.c b/data/yacc.c index bd2d2c28..792de094 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -1033,6 +1033,7 @@ yyreduce: switch (yyn) ]{ b4_actions + default: break; } /* Line __line__ of yacc.c. */ -- 2.45.2