diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 980e517cb614..2a901bcec503 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -249,6 +249,8 @@ nfs_toggle_share(const char *lockfile, const char *exports, 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 b53ff09872b9..494442cb520f 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 d6dbc158ce91..002c5e24ca66 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); }