summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2019-01-11 21:58:56 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-15 19:09:46 (GMT)
commitb056bc34258267c4ae59c72e3777d0a0f0b5a1b1 (patch)
treeaa1632cdb773244aa402c0cf7ccd4f6e53a28536 /Source/cmGeneratorTarget.cxx
parentda566d4de885130e182edc80f13691f5ca24bb61 (diff)
downloadCMake-b056bc34258267c4ae59c72e3777d0a0f0b5a1b1.zip
CMake-b056bc34258267c4ae59c72e3777d0a0f0b5a1b1.tar.gz
CMake-b056bc34258267c4ae59c72e3777d0a0f0b5a1b1.tar.bz2
Fix most clang -Wextra-semi-stmt warnings in C++ files
Suppress one in code generated by flex.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 80d81d5..44941f6 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -435,14 +435,14 @@ static void handleSystemIncludesDep(
/* clang-format off */
#define IMPLEMENT_VISIT(KIND) \
- { \
+ do { \
KindedSources const& kinded = this->GetKindedSources(config); \
for (SourceAndKind const& s : kinded.Sources) { \
if (s.Kind == KIND) { \
data.push_back(s.Source.Value); \
} \
} \
- }
+ } while (false)
/* clang-format on */
void cmGeneratorTarget::GetObjectSources(