[PATCH] Cleanup unused variable in /etc/lcc.c
orbitcowboy opened this issue · comments
Please review the attached patch, it simply removes an unused variable in etc/lcc.c.
Best regards and many thanks
Martin Ettl
diff --git a/etc/lcc.c b/etc/lcc.c
index 06880b7..95b621a 100755
--- a/etc/lcc.c
+++ b/etc/lcc.c
@@ -778,10 +778,9 @@ char *strsave(const char *str) {
char *stringf(const char *fmt, ...) {
char buf[1024];
va_list ap;
- int n;
va_start(ap, fmt);
- n = vsprintf(buf, fmt, ap);
+ (void)vsprintf(buf, fmt, ap);
va_end(ap);
return strsave(buf);
}
Fixed. Thanks.