From 3c7490e446aae1074113e6343c17b86f0ab4da15 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 19 Jul 2011 19:20:40 +0400 Subject: [PATCH] Removed compiler warning --- dmd2/statement.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dmd2/statement.c b/dmd2/statement.c index d11a8e96..2ca6d8f0 100644 --- a/dmd2/statement.c +++ b/dmd2/statement.c @@ -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