summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmExprLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-16 14:52:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-16 14:52:45 (GMT)
commitbd54cc774a5b14720a9e741fc40192ea11106443 (patch)
treef8d0bab5ca429938678e74af746ee9ab0ccdd778 /Source/LexerParser/cmExprLexer.in.l
parente2c39e05732409d60e7921b45a70dd8b9aa24b5a (diff)
parentb056bc34258267c4ae59c72e3777d0a0f0b5a1b1 (diff)
downloadCMake-bd54cc774a5b14720a9e741fc40192ea11106443.zip
CMake-bd54cc774a5b14720a9e741fc40192ea11106443.tar.gz
CMake-bd54cc774a5b14720a9e741fc40192ea11106443.tar.bz2
Merge topic 'semi-warnings'
b056bc3425 Fix most clang -Wextra-semi-stmt warnings in C++ files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2795
Diffstat (limited to 'Source/LexerParser/cmExprLexer.in.l')
-rw-r--r--Source/LexerParser/cmExprLexer.in.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/LexerParser/cmExprLexer.in.l b/Source/LexerParser/cmExprLexer.in.l
index 89d1381..f8a4224 100644
--- a/Source/LexerParser/cmExprLexer.in.l
+++ b/Source/LexerParser/cmExprLexer.in.l
@@ -25,7 +25,7 @@ Modify cmExprLexer.cxx:
/* Replace the lexer input function. */
#undef YY_INPUT
#define YY_INPUT(buf, result, max_size) \
- { result = yyextra->LexInput(buf, max_size); }
+ do { result = yyextra->LexInput(buf, max_size); } while (0)
/* Include the set of tokens from the parser. */
#include "cmExprParserTokens.h"