The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8e9db62e7423eed795291ac88622fbed018b6abd
commit 8e9db62e7423eed795291ac88622fbed018b6abd Author: John Baldwin <[email protected]> AuthorDate: 2023-04-10 17:36:14 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2023-04-10 17:36:14 +0000 zfs: Appease set by unused warnings for spl_fstrans_*mark stubs. Use a void cast to mark the cookie value as used in spl_fstrans_unmark. Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39357 --- sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h b/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h index 1ce72330412c..457fa3af8142 100644 --- a/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h +++ b/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h @@ -78,7 +78,7 @@ extern int hz; extern int tick; typedef int fstrans_cookie_t; #define spl_fstrans_mark() (0) -#define spl_fstrans_unmark(x) (x = 0) +#define spl_fstrans_unmark(x) ((void)x) #define signal_pending(x) SIGPENDING(x) #define current curthread #define thread_join(x)
