From 210c77968a6542b401a8784c424b1b5935f631af Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 7 Jan 2016 15:38:23 +0100 Subject: [PATCH] Don't report warning about extra arguments, if there are no extra arguments (Fixes #3133) --- components/compiler/exprparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/compiler/exprparser.cpp b/components/compiler/exprparser.cpp index d35b08167..c739048a6 100644 --- a/components/compiler/exprparser.cpp +++ b/components/compiler/exprparser.cpp @@ -791,7 +791,7 @@ namespace Compiler if (*iter=='c') stringParser.smashCase(); scanner.scan (stringParser); - if (optional && stringParser.isEmpty()) + if ((optional || *iter=='x') && stringParser.isEmpty()) break; if (*iter!='x')