Date: Mon, 10 Apr 2023 17:44:02 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 8e9db62e7423 - main - zfs: Appease set by unused warnings for spl_fstrans_*mark stubs. Message-ID: <202304101744.33AHi2bS073885@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8e9db62e7423eed795291ac88622fbed018b6abd commit 8e9db62e7423eed795291ac88622fbed018b6abd Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-04-10 17:36:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304101744.33AHi2bS073885>