mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +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>
|
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.
|
* NEWS: Document when yyparse started to return 2.
|
||||||
* doc/bison.texinfo (Parser Function): Document when yyparse
|
* doc/bison.texinfo (Parser Function): Document when yyparse
|
||||||
returns 2.
|
returns 2.
|
||||||
|
|||||||
@@ -1674,6 +1674,11 @@ yyresolveValue (yySemanticOption* yyoptionList, yyGLRStack* yystack,
|
|||||||
yybest = yyp;
|
yybest = yyp;
|
||||||
yymerge = yyfalse;
|
yymerge = yyfalse;
|
||||||
break;
|
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;
|
yypp = &yyp->yynext;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user