ExprParser: Warn about ignored arguments

This commit is contained in:
scrawl 2016-01-03 00:02:58 +01:00
parent 3ebfb47983
commit e695619aa5

View file

@ -804,6 +804,8 @@ namespace Compiler
if (optional)
++optionalCount;
}
else
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
}
else if (*iter=='X')
{
@ -815,6 +817,8 @@ namespace Compiler
if (parser.isEmpty())
break;
else
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
}
else if (*iter=='z')
{
@ -825,6 +829,8 @@ namespace Compiler
if (discardParser.isEmpty())
break;
else
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
}
else if (*iter=='j')
{