aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 3a0d784f..fb587c47 100644
--- a/scope.c
+++ b/scope.c
@@ -155,6 +155,8 @@ void end_label_scope(void)
FOR_EACH_PTR(label_scope->symbols, sym) {
if (!sym->stmt || sym->used)
continue;
+ if (sym->label_modifiers & MOD_UNUSED)
+ continue;
warning(sym->pos, "unused label '%s'", show_ident(sym->ident));
} END_FOR_EACH_PTR(sym);