From 119d37f5be1c8797b5d893d15204396611d7ff38 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 10 Nov 2016 15:31:29 +0100 Subject: silent another warning rationale: we don't set any private data with rpmlogSetCallback() --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1