summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-28 12:45:46 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-28 12:45:46 (GMT)
commite0d0d5db0f45e6b86e70916200999562cb877026 (patch)
tree9a076eb29992cab55bdd6900fa00f3e92ff9daef /Source/cmIfCommand.cxx
parent054b587504cfa3a5f80a502f7d231104b579b5df (diff)
downloadCMake-e0d0d5db0f45e6b86e70916200999562cb877026.zip
CMake-e0d0d5db0f45e6b86e70916200999562cb877026.tar.gz
CMake-e0d0d5db0f45e6b86e70916200999562cb877026.tar.bz2
Remove unreachable code in cmIfCommand
The commit "Fix if() command and CMP0012 OLD/NEW behavior" introduced an unreachable 'break' after 'return' in a switch statement. We remove it.
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index dfdbc86..22ba28f 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -315,7 +315,6 @@ namespace
}
case cmPolicies::OLD:
return oldResult;
- break;
case cmPolicies::REQUIRED_IF_USED:
case cmPolicies::REQUIRED_ALWAYS:
{