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/cmCoreTryCompile.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/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 02d559b..971c86e 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -626,6 +626,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, /* clang-format on */ this->Makefile->IssueMessage(MessageType::AUTHOR_WARNING, w.str()); } + CM_FALLTHROUGH; case cmPolicies::OLD: // OLD behavior is to do nothing. break; @@ -663,6 +664,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, /* clang-format on */ this->Makefile->IssueMessage(MessageType::AUTHOR_WARNING, w.str()); } + CM_FALLTHROUGH; case cmPolicies::OLD: // OLD behavior is to do nothing. break; @@ -878,6 +880,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, this->Makefile->IssueMessage( MessageType::FATAL_ERROR, cmPolicies::GetRequiredPolicyError(cmPolicies::CMP0067)); + break; case cmPolicies::NEW: // NEW behavior is to honor the language standard variables. // We already initialized honorStandard to true. |