Date: Fri, 10 Jul 2026 17:52:05 +0000 From: Ryan Libby <rlibby@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c503d23a6ccb - main - fusefs: fix gcc build error with shadowed variable in tests Message-ID: <6a513145.421bb.1dd99828@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=c503d23a6ccb8090edabc1c90981f9b8f202e093 commit c503d23a6ccb8090edabc1c90981f9b8f202e093 Author: Ryan Libby <rlibby@FreeBSD.org> AuthorDate: 2026-07-10 17:51:03 +0000 Commit: Ryan Libby <rlibby@FreeBSD.org> CommitDate: 2026-07-10 17:51:03 +0000 fusefs: fix gcc build error with shadowed variable in tests Reported by: gcc -Werror=shadow Reviewed by: asomers, markj Fixes: ee1c3d38a26a ("fusefs: fix vnode locking violations during execve") Differential Revision: https://reviews.freebsd.org/D58130 --- tests/sys/fs/fusefs/misc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/fs/fusefs/misc.cc b/tests/sys/fs/fusefs/misc.cc index d95356262c1f..985fe927a858 100644 --- a/tests/sys/fs/fusefs/misc.cc +++ b/tests/sys/fs/fusefs/misc.cc @@ -280,7 +280,7 @@ TEST_F(FexecvDefaultPermissions, atime) }, [&] { char *const argv[] = {__DECONST(char *, "true"), NULL}; char *const env[] = {NULL}; - char buf[8]; + char cbuf[8]; int fd; /* Note that fexecve doesn't actually require O_EXEC */ @@ -290,7 +290,7 @@ TEST_F(FexecvDefaultPermissions, atime) return 1; } /* Read a few bytes, just to dirty the file's atime */ - if (read(fd, buf, sizeof(buf)) < 0) { + if (read(fd, cbuf, sizeof(cbuf)) < 0) { fprintf(stderr, "read: %s\n", strerror(errno)); return 1; }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a513145.421bb.1dd99828>
