Eliminate unused variables

- We're not expecting anything in return from rpmtsNotify() in psm,
  so just ignore the returns...
This commit is contained in:
Panu Matilainen 2011-03-04 13:24:38 +02:00
parent cf04f4400f
commit 62369bf149
1 changed files with 6 additions and 10 deletions

View File

@ -813,9 +813,8 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
/* XXX Synthesize callbacks for packages with no files. */
if (rpmfiFC(fi) <= 0) {
void * ptr;
ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_START, 0, 100);
ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_PROGRESS, 100, 100);
rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_START, 0, 100);
rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_PROGRESS, 100, 100);
break;
}
@ -867,9 +866,8 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
/* XXX Synthesize callbacks for packages with no files. */
if (rpmfiFC(fi) <= 0) {
void * ptr;
ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_START, 0, 100);
ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_STOP, 0, 100);
rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_START, 0, 100);
rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_STOP, 0, 100);
break;
}
@ -985,10 +983,8 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
case PSM_CREATE:
break;
case PSM_NOTIFY:
{ void * ptr;
/* FIX: psm->te may be NULL */
ptr = rpmtsNotify(ts, psm->te, psm->what, psm->amount, psm->total);
} break;
rpmtsNotify(ts, psm->te, psm->what, psm->amount, psm->total);
break;
case PSM_DESTROY:
break;
case PSM_SCRIPT: /* Run current package scriptlets. */