mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
be more accurate about the operator involved
This commit is contained in:
parent
0271afbb10
commit
eef9e8e2dc
1 changed files with 2 additions and 2 deletions
|
@ -440,8 +440,8 @@ binary_expr (int op, expr_t *e1, expr_t *e2)
|
||||||
|
|
||||||
if ((op == '&' || op == '|')
|
if ((op == '&' || op == '|')
|
||||||
&& e1->type == ex_uexpr && e1->e.expr.op == '!' && !e1->paren) {
|
&& e1->type == ex_uexpr && e1->e.expr.op == '!' && !e1->paren) {
|
||||||
fprintf (stderr, "%s:%d: warning: ambiguous logic. Suggest explicit parentheses with expressions involving ! and &\n",
|
fprintf (stderr, "%s:%d: warning: ambiguous logic. Suggest explicit parentheses with expressions involving ! and %c\n",
|
||||||
strings + e1->file, e1->line);
|
strings + e1->file, e1->line, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
t1 = get_type (e1);
|
t1 = get_type (e1);
|
||||||
|
|
Loading…
Reference in a new issue