mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +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
|
@ -1343,9 +1343,13 @@ statement_label (sblock_t *sblock, expr_t *e)
|
|||
e->e.label.dest = sblock;
|
||||
e->e.label.next = sblock->labels;
|
||||
sblock->labels = &e->e.label;
|
||||
} else {
|
||||
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