diff options
author | Sean McBride <sean@rogue-research.com> | 2021-09-24 11:56:57 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-28 10:53:54 -0400 |
commit | 37859e32442bb433af9876963c92594d05fb64b3 (patch) | |
tree | 6c69acba03ce9224a4bca7bd9d5a1940aa432e47 /Source/cmTargetLinkLibrariesCommand.cxx | |
parent | 907d098838c99ee6c0c72ae0cdf1cc53dbf51ba2 (diff) | |
download | cmake-37859e32442bb433af9876963c92594d05fb64b3.tar.gz |
Source: Fix clang -Wimplicit-fallthrough warnings
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index d39824b9be..e15c9418ac 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -143,6 +143,7 @@ bool cmTargetLinkLibrariesCommand(std::vector<std::string> const& args, case cmPolicies::WARN: e << cmPolicies::GetPolicyWarning(cmPolicies::CMP0039) << "\n"; modal = "should"; + CM_FALLTHROUGH; case cmPolicies::OLD: break; case cmPolicies::REQUIRED_ALWAYS: @@ -150,6 +151,7 @@ bool cmTargetLinkLibrariesCommand(std::vector<std::string> const& args, case cmPolicies::NEW: modal = "must"; messageType = MessageType::FATAL_ERROR; + break; } if (modal) { e << "Utility target \"" << target->GetName() << "\" " << modal @@ -395,6 +397,7 @@ bool TLL::HandleLibrary(ProcessingState currentProcessingState, case cmPolicies::WARN: e << cmPolicies::GetPolicyWarning(cmPolicies::CMP0023) << "\n"; modal = "should"; + CM_FALLTHROUGH; case cmPolicies::OLD: break; case cmPolicies::REQUIRED_ALWAYS: @@ -402,6 +405,7 @@ bool TLL::HandleLibrary(ProcessingState currentProcessingState, case cmPolicies::NEW: modal = "must"; messageType = MessageType::FATAL_ERROR; + break; } if (modal) { |