mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 19:21:29 +00:00
Sanity check for -Wternary-precedence
This commit is contained in:
parent
ed4c513b1e
commit
8188d0b9f7
1 changed files with 5 additions and 0 deletions
5
parser.c
5
parser.c
|
@ -1718,6 +1718,11 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
|
|||
vec_free(sy.out);
|
||||
vec_free(sy.ops);
|
||||
DEBUGSHUNTDO(con_out("shunt done\n"));
|
||||
if (vec_size(parser->pot)) {
|
||||
parseerror(parser, "internal error: vec_size(parser->pot) = %lu", (unsigned long)vec_size(parser->pot));
|
||||
return NULL;
|
||||
}
|
||||
vec_free(parser->pot);
|
||||
return expr;
|
||||
|
||||
onerr:
|
||||
|
|
Loading…
Reference in a new issue