aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-10 15:31:29 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-10 15:31:29 +0100
commit119d37f5be1c8797b5d893d15204396611d7ff38 (patch)
tree1cbbb0a7c531c07fc907689f637f995e1a2d629e
parentd04b6de3d67680dd071ef8abd5bde34da7d82143 (diff)
downloadperl-URPM-119d37f5be1c8797b5d893d15204396611d7ff38.tar
perl-URPM-119d37f5be1c8797b5d893d15204396611d7ff38.tar.gz
perl-URPM-119d37f5be1c8797b5d893d15204396611d7ff38.tar.bz2
perl-URPM-119d37f5be1c8797b5d893d15204396611d7ff38.tar.xz
perl-URPM-119d37f5be1c8797b5d893d15204396611d7ff38.zip
silent another warning
rationale: we don't set any private data with rpmlogSetCallback()
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index dbff81f..daf4988 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -126,7 +126,7 @@ static ssize_t write_nocheck(int fd, const void *buf, size_t count) {
}
static int rpmError_callback_data;
-static int rpmError_callback(rpmlogRec rec, rpmlogCallbackData data) {
+static int rpmError_callback(rpmlogRec rec, __attribute__((unused)) rpmlogCallbackData data) {
write_nocheck(rpmError_callback_data, rpmlogRecMessage(rec), strlen(rpmlogRecMessage(rec)));
return RPMLOG_DEFAULT;
}