summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-06 10:51:10 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-06 10:51:10 -0700
commitb38b78f491b45af111593a9ed1480f9273958d42 (patch)
tree1852880a7fc54e3fa5c1c9ac9ffff800ab5cfafc
parentc75a9bf084fa0a4cda77898cac159c7801edef27 (diff)
downloadmc-b38b78f491b45af111593a9ed1480f9273958d42.tar.gz
Fix unused name in error message.
-rw-r--r--parse/infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 84a4597..4623a73 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -2297,7 +2297,7 @@ static void stabsub(Inferstate *st, Stab *s)
if (d->decl.isgeneric)
dt = "generic";
if (!d->decl.isimport && !d->decl.isextern && !d->decl.init)
- fatal(d, "non-extern %s \"%s\" has no initializer", ctxstr(st, d));
+ fatal(d, "non-extern %s \"%s\" has no initializer", dt, ctxstr(st, d));
}
free(k);
}