Remove / #ifdef out unused variables as appropriate.

This commit is contained in:
Panu Matilainen 2007-07-10 11:00:04 +03:00
parent fbf324936b
commit c9ce3241df
6 changed files with 5 additions and 5 deletions

View File

@ -1244,7 +1244,6 @@ assert(xx != -1); /* XXX figger a proper return path. */
for (fc->ix = 0; fc->ix < fc->nfiles; fc->ix++) { for (fc->ix = 0; fc->ix < fc->nfiles; fc->ix++) {
const char * ftype; const char * ftype;
int_16 mode = (fmode ? fmode[fc->ix] : 0); int_16 mode = (fmode ? fmode[fc->ix] : 0);
char dbuf[1024];
s = argv[fc->ix]; s = argv[fc->ix];
assert(s != NULL); assert(s != NULL);

View File

@ -902,7 +902,6 @@ static int writeFile(/*@special@*/ /*@partial@*/ FSM_t fsm, int writeData)
struct stat * ost = &fsm->osb; struct stat * ost = &fsm->osb;
char * symbuf = NULL; char * symbuf = NULL;
int left; int left;
int xx;
int rc; int rc;
st->st_size = (writeData ? ost->st_size : 0); st->st_size = (writeData ? ost->st_size : 0);

View File

@ -406,8 +406,10 @@ static int makePGPSignature(const char * file, int_32 * sigTagp,
struct stat st; struct stat st;
const char * cmd; const char * cmd;
char *const *av; char *const *av;
#ifdef NOTYET
pgpDig dig = NULL; pgpDig dig = NULL;
pgpDigParams sigp = NULL; pgpDigParams sigp = NULL;
#endif
int rc; int rc;
/*@-boundswrite@*/ /*@-boundswrite@*/

View File

@ -474,7 +474,6 @@ int showVerifyPackage(QVA_t qva, rpmts ts, Header h)
int rpmcliVerify(rpmts ts, QVA_t qva, const char ** argv) int rpmcliVerify(rpmts ts, QVA_t qva, const char ** argv)
{ {
const char * arg;
rpmVSFlags vsflags, ovsflags; rpmVSFlags vsflags, ovsflags;
int ec = 0; int ec = 0;

View File

@ -157,7 +157,6 @@ int domd5(const char * fn, unsigned char * digest, int asAscii, size_t *fsizep)
pid_t pid = 0; pid_t pid = 0;
int rc = 0; int rc = 0;
int fdno; int fdno;
int xx;
/*@-globs -internalglobs -mods @*/ /*@-globs -internalglobs -mods @*/
fdno = open_dso(path, &pid, &fsize); fdno = open_dso(path, &pid, &fsize);

View File

@ -180,10 +180,12 @@ rpmtime_t rpmswInit(void)
rpmsw_type @*/ rpmsw_type @*/
{ {
struct rpmsw_s begin, end; struct rpmsw_s begin, end;
#if defined(HP_TIMING_NOW)
unsigned long long sum_cycles = 0; unsigned long long sum_cycles = 0;
rpmtime_t sum_usecs = 0; rpmtime_t sum_usecs = 0;
rpmtime_t sum_overhead = 0;
rpmtime_t cycles; rpmtime_t cycles;
#endif
rpmtime_t sum_overhead = 0;
int i; int i;
rpmsw_initialized = 1; rpmsw_initialized = 1;