Use CM_FALLTHROUGH in Windows-specific code

Some cases were missed by earlier sweeps due to not compiling
Windows-specific code.
This commit is contained in:
Brad King
2017-12-04 10:57:30 -05:00
parent e841ae823e
commit 21541bb5cc
2 changed files with 3 additions and 0 deletions

View File

@@ -615,6 +615,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
switch (target->GetType()) {
case cmStateEnums::OBJECT_LIBRARY:
targetBuilds = false; // no manifest tool for object library
CM_FALLTHROUGH;
case cmStateEnums::STATIC_LIBRARY:
projectType = "typeStaticLibrary";
configType = "4";
@@ -630,6 +631,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
case cmStateEnums::UTILITY:
case cmStateEnums::GLOBAL_TARGET:
configType = "10";
CM_FALLTHROUGH;
default:
targetBuilds = false;
break;

View File

@@ -52,6 +52,7 @@ static std::string cmVS10EscapeComment(std::string comment)
case '>': /* no break */
case '^':
echoable += '^'; /* no break */
CM_FALLTHROUGH;
default:
echoable += *c;
break;