git: 0c09c6527b16 - main - tests/fusefs: appease gcc -Wcast-qual
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Apr 2026 16:35:01 UTC
The branch main has been updated by rlibby:
URL: https://cgit.FreeBSD.org/src/commit/?id=0c09c6527b16953d355125bee7a839f743a39dad
commit 0c09c6527b16953d355125bee7a839f743a39dad
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2026-04-15 16:32:22 +0000
Commit: Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2026-04-15 16:32:22 +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
---
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;