mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
linker.c:
I think I found the real reason doxygen gets confused expr.c: add a check for x & y == 2 (or similar) doesn't work for constant y at the moment.
This commit is contained in:
parent
d9ac6dd99a
commit
8f440c7911
2 changed files with 11 additions and 3 deletions
|
@ -1723,6 +1723,14 @@ check_precedence (int op, expr_t *e1, expr_t *e2)
|
|||
return binary_expr (e2->e.expr.op, e1, e2->e.expr.e2);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (e2->type == ex_expr && !e2->paren) {
|
||||
if ((op == '&' || op == '|' || op == '^')
|
||||
&& is_compare (e2->e.expr.op)) {
|
||||
warning (e2, "suggest parentheses around comparison in "
|
||||
"operand of %c", op);
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -157,9 +157,9 @@ X##group_add_##X##s (X##group_t *X##group, qfo_##X##_t *X##s, int num_##X##s)\
|
|||
X##group->num_##X##s += num_##X##s;\
|
||||
}
|
||||
|
||||
Xgroup_add(def) // defgroup_add_defs
|
||||
Xgroup_add(reloc) // relocgroup_add_relocs
|
||||
Xgroup_add(func) // funcgroup_add_funcs
|
||||
Xgroup_add(def); // defgroup_add_defs
|
||||
Xgroup_add(reloc); // relocgroup_add_relocs
|
||||
Xgroup_add(func); // funcgroup_add_funcs
|
||||
|
||||
static void def_error (qfo_def_t *def, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
static void def_warning (qfo_def_t *def, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
|
|
Loading…
Reference in a new issue