From ffb34b5ca9a6749441c8b062e2c800963184b0ac Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 29 May 2015 10:57:22 +0200 Subject: [PATCH] Silence two further warnings These two local variables seem unused, probably artifacts from some older refactoring. --- mt.c | 3 +-- stinit.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mt.c b/mt.c index d8b9ca4..60ed313 100644 --- a/mt.c +++ b/mt.c @@ -284,7 +284,7 @@ static char *tape_name; /* The tape name for messages */ int main(int argc, char **argv) { - int mtfd, cmd_code, i, argn, oflags; + int mtfd, i, argn, oflags; unsigned int len; char *cmdstr; cmdef_tr *comp, *comp2; @@ -365,7 +365,6 @@ main(int argc, char **argv) comp->cmd_name); exit(1); } - cmd_code = comp->cmd_code; if (comp->cmd_fdtype != NO_FD) { oflags = comp->cmd_fdtype == FD_RDONLY ? O_RDONLY : O_RDWR; diff --git a/stinit.c b/stinit.c index 7e03e90..6ebce90 100644 --- a/stinit.c +++ b/stinit.c @@ -451,9 +451,6 @@ find_pars(FILE *dbf, char *company, char *product, char *rev, devdef_tr *defs, static int sg_io_errcheck(struct sg_io_hdr *hdp) { - int status; - - status = hdp->status & 0x7e; if ((hdp->status & 0x7e) == 0 || hdp->host_status == 0 || hdp->driver_status == 0) return 0;