diff options
| Commit | 7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c (patch) | |
|---|---|---|
| Author | 2020-11-28 10:42:25 +0200 | |
| Committer | 2020-11-28 20:58:46 +0200 | |
| Files | a3acc545a4a6258d2d3e97f69b55a844272fac08 /JSImpl | |
| IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.tar IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.tar.gz IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.zip | ||
| Parent | 9cf31d4b4e389f7c879aa8750a397e32f55a43d1 (diff) | |
Fix clang-tidy warnings
1 files changed, 4 insertions, 1 deletions
| -rw-r--r-- | JSImpl/src/Parser.cpp | 5 |
diff --git a/JSImpl/src/Parser.cpp b/JSImpl/src/Parser.cpp index 00907a0..8f415fb 100644 --- a/JSImpl/src/Parser.cpp +++ b/JSImpl/src/Parser.cpp @@ -140,7 +140,8 @@ ExpressionPtr Parser::PrimaryExpression(NormalType a) { if (a == NormalType::Initial) { - return SimpleExpression(); + auto simple = SimpleExpression(); + return simple; } if (auto simple = SimpleExpression()) @@ -682,9 +683,11 @@ ExpressionPtr Parser::ConditionalExpression(NormalType a, AllowType b) if (Match(TokenType::QuestionMark)) { auto trueExpr= AssignmentExpression(NormalType::Normal, b); + (void)trueExpr; if (Match(TokenType::Colon)) { auto falseExpr = AssignmentExpression(NormalType::Normal, b); + (void)falseExpr; // TODO implement trinary operator assert(false); return ExpressionPtr(); |
