* data/glr.c (yyresolveValue): Add default case to pacify

gcc -Wswitch-default.  Problem reported by twlevo@xs4all.nl.
This commit is contained in:
Paul Eggert
2005-09-15 14:16:54 +00:00
parent b47dbebee5
commit ae199bf10f
2 changed files with 8 additions and 0 deletions

View File

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