shithub: mc

Download patch

ref: b38b78f491b45af111593a9ed1480f9273958d42
parent: c75a9bf084fa0a4cda77898cac159c7801edef27
author: Ori Bernstein <ori@markovcorp.com>
date: Thu Jul 6 06:51:10 EDT 2017

Fix unused name in error message.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -2297,7 +2297,7 @@
 		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);
 }