Removed compiler warning

This commit is contained in:
Alexey Prokhin
2011-07-19 19:20:40 +04:00
parent 2220dd0559
commit 3c7490e446

View File

@@ -3327,16 +3327,12 @@ Statement *DefaultStatement::semantic(Scope *sc)
sc->sw->sdefault = this;
#if IN_LLVM
enclosingScopeExit = sc->enclosingScopeExit;
if (enclosingScopeExit != sc->sw->enclosingScopeExit)
{
error("default must be inside the same try, synchronized or volatile level as switch");
}
enclosingScopeExit = sc->sw->enclosingScopeExit;
if (sc->sw->isFinal)
{
error("default statement not allowed in final switch statement");
}
if (sc->sw->isFinal)
{
error("default statement not allowed in final switch statement");
}
#endif
}
else