aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-25 17:50:12 +0000
committerBrian Behlendorf <[email protected]>2022-02-26 11:28:18 -0800
commitb08153f1c1dc55711cbfe8a93d5d8579359a447a (patch)
treecf8e8b32ff74fd52fed573036341da58311108a7 /lib
parent1ea68b6d38d8e20e53e813b6a9d5d68f4c7cd838 (diff)
freebsd: libzfs: zmount: void-cast unused assert(3) variables
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13145 Closes #13152
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/os/freebsd/libzfs_zmount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c
index 79a8fe111..3a6ab43e9 100644
--- a/lib/libzfs/os/freebsd/libzfs_zmount.c
+++ b/lib/libzfs/os/freebsd/libzfs_zmount.c
@@ -85,10 +85,10 @@ do_mount_(const char *spec, const char *dir, int mflag, char *fstype,
assert(dir != NULL);
assert(fstype != NULL);
assert(strcmp(fstype, MNTTYPE_ZFS) == 0);
- assert(dataptr == NULL);
- assert(datalen == 0);
+ assert(dataptr == NULL), (void) dataptr;
+ assert(datalen == 0), (void) datalen;
assert(optptr != NULL);
- assert(optlen > 0);
+ assert(optlen > 0), (void) optlen;
tofree = optstr = strdup(optptr);
assert(optstr != NULL);