Function nomsg_reply_cb() is used as a callback for mnl_cb_run() but it does not use its data parameter; mark it as unused to get rid of compiler warning.
Signed-off-by: Michal Kubecek <mkube...@suse.cz> --- netlink/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlink/netlink.c b/netlink/netlink.c index 17b7788600d0..76b6e825b1d0 100644 --- a/netlink/netlink.c +++ b/netlink/netlink.c @@ -16,7 +16,7 @@ /* Used as reply callback for requests where no reply is expected (e.g. most * "set" type commands) */ -int nomsg_reply_cb(const struct nlmsghdr *nlhdr, void *data) +int nomsg_reply_cb(const struct nlmsghdr *nlhdr, void *data __maybe_unused) { const struct genlmsghdr *ghdr = (const struct genlmsghdr *)(nlhdr + 1); -- 2.28.0