diff --git a/lib/libshare/libshare.c b/lib/libshare/libshare.c index ea59dcdbc60e..89a4fe9aa9e3 100644 --- a/lib/libshare/libshare.c +++ b/lib/libshare/libshare.c @@ -215,7 +215,7 @@ update_sharetab(sa_handle_impl_t impl_handle) fsync(temp_fd); fclose(temp_fp); - rename(tempfile, "/etc/dfs/sharetab"); + (void) rename(tempfile, "/etc/dfs/sharetab"); } typedef struct update_cookie_s { diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index abcc1025b1ce..58b4c8880400 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -675,7 +675,7 @@ nfs_check_exportfs(void) unlink(nfs_exportfs_tempfile); - fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC); + (void) fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC); pid = fork(); diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index 579626220457..f4bda8a393d2 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -1045,7 +1045,7 @@ kobj_get_filesize(struct _buf *file, uint64_t *size) void delay(clock_t ticks) { - poll(0, 0, ticks * (1000 / hz)); + (void) poll(0, 0, ticks * (1000 / hz)); } /*