oops - parsewarning returns true on -Werror, so we gotta invert here

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 21:07:23 +02:00
parent 4d0be789ac
commit fc1622140b

View file

@ -943,11 +943,11 @@ static bool parser_close_call(parser_t *parser, shunt *sy)
else else
{ {
if (fval) if (fval)
return parsewarning(parser, WARN_TOO_FEW_PARAMETERS, return !parsewarning(parser, WARN_TOO_FEW_PARAMETERS,
"too few parameters for call to %s: expected %i, got %i", "too few parameters for call to %s: expected %i, got %i",
fval->name, (int)fun->expression.params_count, paramcount); fval->name, (int)fun->expression.params_count, paramcount);
else else
return parsewarning(parser, WARN_TOO_FEW_PARAMETERS, return !parsewarning(parser, WARN_TOO_FEW_PARAMETERS,
"too few parameters for function call: expected %i, got %i", "too few parameters for function call: expected %i, got %i",
(int)fun->expression.params_count, paramcount); (int)fun->expression.params_count, paramcount);
} }