From: Karel Zak Date: Thu, 3 May 2018 08:30:51 +0000 (+0200) Subject: libmount: fix compiler warning [-Wunused-parameter] X-Git-Tag: v2.32.1~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f564817fa125257db4d78a72eeae09411decf227;p=thirdparty%2Futil-linux.git libmount: fix compiler warning [-Wunused-parameter] Reported-by: L A Walsh Signed-off-by: Karel Zak --- diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c index a4b2e018cb..61b95f6ca0 100644 --- a/libmount/src/monitor.c +++ b/libmount/src/monitor.c @@ -199,10 +199,9 @@ static struct monitor_entry *monitor_get_entry(struct libmnt_monitor *mn, int ty * Userspace monitor */ -static int userspace_monitor_close_fd(struct libmnt_monitor *mn, +static int userspace_monitor_close_fd(struct libmnt_monitor *mn __attribute__((__unused__)), struct monitor_entry *me) { - assert(mn); assert(me); if (me->fd >= 0) @@ -430,10 +429,9 @@ err: * Kernel monitor */ -static int kernel_monitor_close_fd(struct libmnt_monitor *mn, +static int kernel_monitor_close_fd(struct libmnt_monitor *mn __attribute__((__unused__)), struct monitor_entry *me) { - assert(mn); assert(me); if (me->fd >= 0)