summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-09-24 15:56:57 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-28 14:53:54 (GMT)
commit37859e32442bb433af9876963c92594d05fb64b3 (patch)
tree6c69acba03ce9224a4bca7bd9d5a1940aa432e47 /Source/cmComputeLinkInformation.cxx
parent907d098838c99ee6c0c72ae0cdf1cc53dbf51ba2 (diff)
downloadCMake-37859e32442bb433af9876963c92594d05fb64b3.zip
CMake-37859e32442bb433af9876963c92594d05fb64b3.tar.gz
CMake-37859e32442bb433af9876963c92594d05fb64b3.tar.bz2
Source: Fix clang -Wimplicit-fallthrough warnings
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index a3e346c..831a81f 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1185,6 +1185,7 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item)
this->CMP0060WarnItems.insert(item);
}
}
+ CM_FALLTHROUGH;
case cmPolicies::OLD:
break;
case cmPolicies::REQUIRED_ALWAYS:
@@ -1454,8 +1455,10 @@ void cmComputeLinkInformation::HandleBadFullItem(std::string const& item,
this->Target->GetBacktrace());
}
}
- case cmPolicies::OLD:
+ CM_FALLTHROUGH;
+ case cmPolicies::OLD: // NOLINT(bugprone-branch-clone)
// OLD behavior does not warn.
+ break;
case cmPolicies::NEW:
// NEW behavior will not get here.
break;
@@ -1494,6 +1497,7 @@ bool cmComputeLinkInformation::FinishLinkerSearchDirectories()
this->CMakeInstance->IssueMessage(MessageType::AUTHOR_WARNING, w.str(),
this->Target->GetBacktrace());
}
+ CM_FALLTHROUGH;
case cmPolicies::OLD:
// OLD behavior is to add the paths containing libraries with
// known full paths as link directories.