aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-10 15:25:40 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-10 15:28:35 +0100
commitd04b6de3d67680dd071ef8abd5bde34da7d82143 (patch)
treeefa30d400d3ffd06207130b6f7200ff80bc8e365
parent263c1ab0a086fb8aac60d256d355b48e0e2293fb (diff)
downloadperl-URPM-d04b6de3d67680dd071ef8abd5bde34da7d82143.tar
perl-URPM-d04b6de3d67680dd071ef8abd5bde34da7d82143.tar.gz
perl-URPM-d04b6de3d67680dd071ef8abd5bde34da7d82143.tar.bz2
perl-URPM-d04b6de3d67680dd071ef8abd5bde34da7d82143.tar.xz
perl-URPM-d04b6de3d67680dd071ef8abd5bde34da7d82143.zip
silent a warning
by reverting a bit of commit b0cd1853933d8c68610c9e173721525c6a17e8ce that should have gone with along: commit b5249dafb882fbc105f05853c80fd30503d57a3f
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 6334a3b..dbff81f 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1214,7 +1214,7 @@ ts_nosignature(rpmts ts) {
return rpmtsSetVSFlags(ts, _RPMVSF_NODIGESTS | _RPMVSF_NOSIGNATURES);
}
-static void *rpmRunTransactions_callback(const void *arg,
+static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
const rpmCallbackType what,
const rpm_loff_t amount,
const rpm_loff_t total,
@@ -1229,7 +1229,6 @@ static void *rpmRunTransactions_callback(const void *arg,
SV *callback = NULL;
char *callback_type = NULL;
char *callback_subtype = NULL;
- Header h = (Header) arg;
if (!td)
return NULL;