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