diff options
author | Sean McBride <sean@rogue-research.com> | 2021-09-24 15:56:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-28 14:53:54 (GMT) |
commit | 37859e32442bb433af9876963c92594d05fb64b3 (patch) | |
tree | 6c69acba03ce9224a4bca7bd9d5a1940aa432e47 /Source/cmInstallCommand.cxx | |
parent | 907d098838c99ee6c0c72ae0cdf1cc53dbf51ba2 (diff) | |
download | CMake-37859e32442bb433af9876963c92594d05fb64b3.zip CMake-37859e32442bb433af9876963c92594d05fb64b3.tar.gz CMake-37859e32442bb433af9876963c92594d05fb64b3.tar.bz2 |
Source: Fix clang -Wimplicit-fallthrough warnings
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r-- | Source/cmInstallCommand.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index ee77b2c..eaf88f6 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -1391,6 +1391,7 @@ bool HandleFilesMode(std::vector<std::string> const& args, case cmPolicies::WARN: e << cmPolicies::GetPolicyWarning(cmPolicies::CMP0062) << "\n"; modal = "should"; + CM_FALLTHROUGH; case cmPolicies::OLD: break; case cmPolicies::REQUIRED_IF_USED: @@ -1398,6 +1399,7 @@ bool HandleFilesMode(std::vector<std::string> const& args, case cmPolicies::NEW: modal = "may"; messageType = MessageType::FATAL_ERROR; + break; } if (modal) { e << "The file\n " << file |