mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
don't warn for ! precedence
This commit is contained in:
parent
fafc578440
commit
87a31439e4
1 changed files with 1 additions and 1 deletions
|
@ -1497,7 +1497,7 @@ binary_expr (int op, expr_t *e1, expr_t *e2)
|
||||||
"code", op);
|
"code", op);
|
||||||
e1->e.expr.e1->paren = 1;
|
e1->e.expr.e1->paren = 1;
|
||||||
return unary_expr ('!', binary_expr (op, e1->e.expr.e1, e2));
|
return unary_expr ('!', binary_expr (op, e1->e.expr.e1, e2));
|
||||||
} else {
|
} else if (!is_compare (op)) {
|
||||||
warning (e1, "ambiguous logic. Suggest explicit parentheses with "
|
warning (e1, "ambiguous logic. Suggest explicit parentheses with "
|
||||||
"expressions involving ! and %c", op);
|
"expressions involving ! and %c", op);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue