diff options
author | Sean McBride <sean@rogue-research.com> | 2019-01-11 16:58:56 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-15 14:09:46 -0500 |
commit | b056bc34258267c4ae59c72e3777d0a0f0b5a1b1 (patch) | |
tree | aa1632cdb773244aa402c0cf7ccd4f6e53a28536 /Tests/CMakeLib/testSystemTools.cxx | |
parent | da566d4de885130e182edc80f13691f5ca24bb61 (diff) | |
download | cmake-b056bc34258267c4ae59c72e3777d0a0f0b5a1b1.tar.gz |
Fix most clang -Wextra-semi-stmt warnings in C++ files
Suppress one in code generated by flex.
Diffstat (limited to 'Tests/CMakeLib/testSystemTools.cxx')
-rw-r--r-- | Tests/CMakeLib/testSystemTools.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Tests/CMakeLib/testSystemTools.cxx b/Tests/CMakeLib/testSystemTools.cxx index 623ad28d96..96a481953c 100644 --- a/Tests/CMakeLib/testSystemTools.cxx +++ b/Tests/CMakeLib/testSystemTools.cxx @@ -16,11 +16,13 @@ failed = 1 #define cmAssert(exp, m) \ - if ((exp)) { \ - cmPassed(m); \ - } else { \ - cmFailed(m); \ - } + do { \ + if ((exp)) { \ + cmPassed(m); \ + } else { \ + cmFailed(m); \ + } \ + } while (false) int testSystemTools(int /*unused*/, char* /*unused*/ []) { |