mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/glr.c (yyresolveValue): Add default case to pacify
gcc -Wswitch-default. Problem reported by twlevo@xs4all.nl.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* data/glr.c (yyresolveValue): Add default case to pacify
|
||||
gcc -Wswitch-default. Problem reported by twlevo@xs4all.nl.
|
||||
|
||||
* NEWS: Document when yyparse started to return 2.
|
||||
* doc/bison.texinfo (Parser Function): Document when yyparse
|
||||
returns 2.
|
||||
|
||||
@@ -1674,6 +1674,11 @@ yyresolveValue (yySemanticOption* yyoptionList, yyGLRStack* yystack,
|
||||
yybest = yyp;
|
||||
yymerge = yyfalse;
|
||||
break;
|
||||
default:
|
||||
/* This cannot happen so it is not worth a YYASSERT (false),
|
||||
but some compilers complain if the default case is
|
||||
omitted. */
|
||||
break;
|
||||
}
|
||||
yypp = &yyp->yynext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user