mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[qfcc] Remove alias offset from initialize_def
I'm not sure which is mysterious: why it's there, or why it did nothing. Since it does nothing and things are working, it should be safe to remove.
This commit is contained in:
parent
3479897224
commit
12300d9a98
1 changed files with 0 additions and 4 deletions
|
@ -605,15 +605,11 @@ initialize_def (symbol_t *sym, expr_t *init, defspace_t *space,
|
|||
// fold_constants takes care of int/float conversions
|
||||
append_expr (local_expr, fold_constants (init));
|
||||
} else {
|
||||
int offset = 0;
|
||||
if (!is_constant (init)) {
|
||||
error (init, "non-constant initializier");
|
||||
return;
|
||||
}
|
||||
while (init->type == ex_alias) {
|
||||
if (init->e.alias.offset) {
|
||||
offset += expr_int (init->e.alias.offset);
|
||||
}
|
||||
init = init->e.alias.expr;
|
||||
}
|
||||
if (init->type != ex_value) { //FIXME enum etc
|
||||
|
|
Loading…
Reference in a new issue