git: 7a2de8121a2f - stable/15 - tests/fusefs: appease gcc -Wcast-qual
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Apr 2026 15:29:34 UTC
The branch stable/15 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=7a2de8121a2f4779eb5d22de3611fd95af17cc88
commit 7a2de8121a2f4779eb5d22de3611fd95af17cc88
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2026-04-15 16:32:22 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-04-24 15:26:40 +0000
tests/fusefs: appease gcc -Wcast-qual
Fix gcc build error.
Reviewed by: asomers, kib
Fixes: 7e68af7ce2c1 ("fusefs: redo vnode attribute locking")
Differential Revision: https://reviews.freebsd.org/D56370
(cherry picked from commit 0c09c6527b16953d355125bee7a839f743a39dad)
---
tests/sys/fs/fusefs/rename.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/sys/fs/fusefs/rename.cc b/tests/sys/fs/fusefs/rename.cc
index 385f26953aae..d518071ca681 100644
--- a/tests/sys/fs/fusefs/rename.cc
+++ b/tests/sys/fs/fusefs/rename.cc
@@ -239,8 +239,8 @@ TEST_F(Rename, erelookup)
_)
).WillRepeatedly(Invoke(ReturnErrno(EIO)));
- ASSERT_EQ(0, pthread_create(&th0, NULL, setattr_th, (void*)FULLSRC))
- << strerror(errno);
+ ASSERT_EQ(0, pthread_create(&th0, NULL, setattr_th,
+ const_cast<char *>(FULLSRC))) << strerror(errno);
ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &timeout));
timeout.tv_nsec += NAP_NS;