mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 14:50:48 +00:00
oops - parsewarning returns true on -Werror, so we gotta invert here
This commit is contained in:
parent
4d0be789ac
commit
fc1622140b
1 changed files with 6 additions and 6 deletions
4
parser.c
4
parser.c
|
@ -943,11 +943,11 @@ static bool parser_close_call(parser_t *parser, shunt *sy)
|
|||
else
|
||||
{
|
||||
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",
|
||||
fval->name, (int)fun->expression.params_count, paramcount);
|
||||
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",
|
||||
(int)fun->expression.params_count, paramcount);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue