Fix unused variable warnings under FreeBSD.
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:26:28 +0000 (10:26 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:32:39 +0000 (10:32 +0200)
lib/fuse_lowlevel.c
lib/mount_bsd.c

index 34bff00153dce04c390932c473fa357f9350e54a..ff7de82c2dabc73f34a30b22edd9b2e3f585b1d0 100644 (file)
@@ -2978,6 +2978,7 @@ out_free:
  */
 int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
 {
+       (void) req; (void) size; (void) list;
        return -ENOSYS;
 }
 #endif
index 31b41deaf7f7d36c41722f135f96068e02b1dc05..5962e64d147c5cd39b6e15592e3752f36eb11ebd 100644 (file)
@@ -108,6 +108,7 @@ unsigned get_max_read(struct mount_opts *o)
 static int fuse_mount_opt_proc(void *data, const char *arg, int key,
                               struct fuse_args *outargs)
 {
+       (void) outargs;
        struct mount_opts *mo = data;
 
        switch (key) {
@@ -125,8 +126,6 @@ static int fuse_mount_opt_proc(void *data, const char *arg, int key,
 
 void fuse_kern_unmount(const char *mountpoint, int fd)
 {
-       char *ep, dev[128];
-       struct stat sbuf;
        unmount(mountpoint, MNT_FORCE);
        close(fd);
 }