mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-22 02:41:07 +00:00
give error instead of warning for zscript 4.12+ on return count mismatch
This commit is contained in:
parent
d699ba248e
commit
1957c15a41
1 changed files with 1 additions and 1 deletions
|
@ -11332,7 +11332,7 @@ FxExpression *FxReturnStatement::Resolve(FCompileContext &ctx)
|
|||
}
|
||||
else if (protoRetCount > retCount)
|
||||
{ // also warn when returning less values then the return count
|
||||
mismatchSeverity = MSG_WARNING;
|
||||
mismatchSeverity = ctx.Version >= MakeVersion(4, 12) ? MSG_ERROR : MSG_WARNING;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue