aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tomohiro Kusumi <kusumi.tomohiro@gmail.com>2018-05-07 22:57:00 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2018-05-08 19:36:52 +0100
commit27a112e86dba7c8d47f2d77ae002b3954ef53116 (patch)
treed870b3b1645464447fb3b8ed2af673975055d5a0
parentda29b950bc9d204a93706985255a299f1dfea561 (diff)
Fix compile-time warnings on IGNORE_MTAB
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) ^~~~~
-rw-r--r--util/fusermount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index 0f65435..a3cf513 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -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 */