Fix compile-time warnings on IGNORE_MTAB
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 May 2018 05:57:00 +0000 (22:57 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 8 May 2018 18:36:52 +0000 (19:36 +0100)
Silence below warnings which appear if IGNORE_MTAB is defined.

[59/64] Compiling C object 'util/fusermount3@exe/fusermount.c.o'.
../util/fusermount.c:493:12: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 static int count_fuse_fs()
            ^~~~~~~~~~~~~
../util/fusermount.c: In function 'unmount_fuse':
../util/fusermount.c:508:46: warning: unused parameter 'quiet' [-Wunused-parameter]
 static int unmount_fuse(const char *mnt, int quiet, int lazy)
                                              ^~~~~

util/fusermount.c

index 0f65435698aa10023dcb7ddf2d7ce0c8152a9ae2..a3cf5133b3e802b9d0e9ec171aa1633b4ecfd1e8 100644 (file)
@@ -489,7 +489,7 @@ static int count_fuse_fs(void)
 
 
 #else /* IGNORE_MTAB */
-static int count_fuse_fs()
+static int count_fuse_fs(void)
 {
        return 0;
 }
@@ -506,6 +506,7 @@ static int add_mount(const char *source, const char *mnt, const char *type,
 
 static int unmount_fuse(const char *mnt, int quiet, int lazy)
 {
+       (void) quiet;
        return fuse_mnt_umount(progname, mnt, mnt, lazy);
 }
 #endif /* IGNORE_MTAB */