[hackers] [scc] [driver] clean up some unused variables || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 2 Jun 2016 12:33:54 +0200 (CEST)

commit 4fa2093ad0946c767dd20364618382834e571a99
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jun 2 12:33:31 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Jun 2 12:33:31 2016 +0200

    [driver] clean up some unused variables

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 5c04947..532c2b0 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -35,9 +35,9 @@ static struct tool {
 } tools[NR_TOOLS] = {
         [CC1] = { .bin = "cc1", .cmd = PREFIX "/libexec/scc/", },
         [CC2] = { .bin = "cc2", .cmd = PREFIX "/libexec/scc/", },
- [QBE] = { .bin = "qbe", .bin = "qbe", .cmd = "qbe", },
- [AS] = { .bin = "cat", .bin = "cat", .cmd = "cat", },
- [TEE] = { .bin = "tee", .bin = "tee", .cmd = "tee", },
+ [QBE] = { .bin = "qbe", .cmd = "qbe", },
+ [AS] = { .bin = "cat", .cmd = "cat", },
+ [TEE] = { .bin = "tee", .cmd = "tee", },
 };
 
 char *argv0;
_AT_@ -145,14 +145,13 @@ void
 build(char *file)
 {
         int tool, out, keepfile;
- static int in = NR_TOOLS, preout;
+ static int preout;
 
         for (tool = CC1; tool < NR_TOOLS; tool = out) {
                 keepfile = 0;
 
                 switch (tool) {
                 case CC1:
- in = NR_TOOLS;
                         out = Eflag ? NR_TOOLS : CC2;
                         if (!Eflag)
                                 keepfile = kflag;
_AT_@ -187,7 +186,6 @@ build(char *file)
                 }
 
                 spawn(settool(inittool(tool), out));
- in = tool;
         }
         for (i = 0; i < NR_TOOLS; ++i) {
                 if ((pid = tools[i].pid) == 0)
Received on Thu Jun 02 2016 - 12:33:54 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 02 2016 - 12:36:14 CEST