From 53e35c26ee610e060b17820a43632bbe9f668f0b Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Sun, 24 Jun 2018 09:14:52 +0100 Subject: [PATCH] Move side effect out of conditional The side effect is intentional, but compilers might rightfully warn about this. --- src/cpp/parse.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/parse.cpp b/src/cpp/parse.cpp index 9ad3a1e595f..d1ad2256a2c 100644 --- a/src/cpp/parse.cpp +++ b/src/cpp/parse.cpp @@ -4020,7 +4020,9 @@ bool Parser::rArgDeclListOrInit( } else { - if((is_args=rArgDeclList(arglist))) + is_args = rArgDeclList(arglist); + + if(is_args) return true; else {