mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qfcc] Warn about unused labels
This commit is contained in:
parent
393e540ffa
commit
f10f9e157d
1 changed files with 5 additions and 1 deletions
|
@ -1344,7 +1344,11 @@ statement_label (sblock_t *sblock, expr_t *e)
|
|||
e->e.label.next = sblock->labels;
|
||||
sblock->labels = &e->e.label;
|
||||
} else {
|
||||
debug (e, "dropping unused label %s", e->e.label.name);
|
||||
if (e->e.label.symbol) {
|
||||
warning (e, "unused label %s", e->e.label.symbol->name);
|
||||
} else {
|
||||
debug (e, "dropping unused label %s", e->e.label.name);
|
||||
}
|
||||
}
|
||||
return sblock;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue