diff options
author | Karel Zak | 2018-05-03 10:30:51 +0200 |
---|---|---|
committer | Karel Zak | 2018-05-03 10:35:42 +0200 |
commit | af8ed53ee16118baae4d871b1b1863d3a9ecb1f8 (patch) | |
tree | ea8f69a06e1e8aa74c072569b3bc1a8d024f34e3 /libmount/src/monitor.c | |
parent | libblkid: (zfs) fix compiler warning [-Wmaybe-uninitialized] (diff) | |
download | kernel-qcow2-util-linux-af8ed53ee16118baae4d871b1b1863d3a9ecb1f8.tar.gz kernel-qcow2-util-linux-af8ed53ee16118baae4d871b1b1863d3a9ecb1f8.tar.xz kernel-qcow2-util-linux-af8ed53ee16118baae4d871b1b1863d3a9ecb1f8.zip |
libmount: fix compiler warning [-Wunused-parameter]
Reported-by: L A Walsh <lkml@tlinx.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/monitor.c')
-rw-r--r-- | libmount/src/monitor.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c index a4b2e018c..61b95f6ca 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) |