mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix the hordes of bogus defs.
They were caused by unused external defs, so not processing unused externs in the first place is the simplest solution.
This commit is contained in:
parent
7b7f4c70e0
commit
9a96febdf5
1 changed files with 2 additions and 0 deletions
|
@ -350,6 +350,8 @@ add_defs (qfo_t *qfo, qfo_mspace_t *space, qfo_mspace_t *dest_space)
|
|||
odef->file = linker_add_string (QFOSTR (qfo, idef->file));
|
||||
type = (qfot_type_t *) (char *) (qfo_type_defs->d.data + idef->type);
|
||||
odef->type = type->t.class; // pointer to type in work
|
||||
if (odef->flags & QFOD_EXTERNAL && !odef->num_relocs)
|
||||
continue;
|
||||
ref = get_defref (odef, dest_space);
|
||||
work_defrefs[num_work_defrefs++] = ref;
|
||||
process_def (ref, dest_space);
|
||||
|
|
Loading…
Reference in a new issue