]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix compiler warning [-Wunused-parameter]
authorKarel Zak <kzak@redhat.com>
Thu, 3 May 2018 08:30:51 +0000 (10:30 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 May 2018 08:35:42 +0000 (10:35 +0200)
Reported-by: L A Walsh <lkml@tlinx.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/monitor.c

index a4b2e018cb9c15a834fa22dfb9546d10f20e0fdc..61b95f6ca09164a7de0c3ff280b83d3ccf1862b4 100644 (file)
@@ -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)