mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
allow if (void expr) (with warning) in traditional mode
This commit is contained in:
parent
aec0c9eea1
commit
64a9a8199c
1 changed files with 4 additions and 0 deletions
|
@ -1311,6 +1311,10 @@ test_expr (expr_t *e, int test)
|
|||
error (e, "internal error");
|
||||
abort ();
|
||||
case ev_void:
|
||||
if (options.traditional) {
|
||||
warning (e, "void has no value");
|
||||
return e;
|
||||
}
|
||||
return error (e, "void has no value");
|
||||
case ev_string:
|
||||
new = new_string_expr (0);
|
||||
|
|
Loading…
Reference in a new issue