diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 980e517cb..2a901bcec 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -249,6 +249,8 @@ fullerr: static boolean_t nfs_is_shared_cb(void *userdata, char *line, boolean_t found_mountpoint) { + (void) line; + boolean_t *found = userdata; *found = found_mountpoint; return (!found_mountpoint); diff --git a/lib/libshare/os/freebsd/nfs.c b/lib/libshare/os/freebsd/nfs.c index b53ff0987..494442cb5 100644 --- a/lib/libshare/os/freebsd/nfs.c +++ b/lib/libshare/os/freebsd/nfs.c @@ -134,6 +134,7 @@ nfs_enable_share(sa_share_impl_t impl_share) static int nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) { + (void) impl_share, (void) tmpfile; return (SA_OK); } diff --git a/lib/libshare/os/linux/nfs.c b/lib/libshare/os/linux/nfs.c index d6dbc158c..002c5e24c 100644 --- a/lib/libshare/os/linux/nfs.c +++ b/lib/libshare/os/linux/nfs.c @@ -440,6 +440,7 @@ nfs_enable_share(sa_share_impl_t impl_share) static int nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) { + (void) impl_share, (void) tmpfile; return (SA_OK); }