The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=0e3dae1ca8fc371eb5c451032adc5e0813b00db6
commit 0e3dae1ca8fc371eb5c451032adc5e0813b00db6 Author: Siva Mahadevan <[email protected]> AuthorDate: 2026-09-08 20:10:51 +0000 Commit: Siva Mahadevan <[email protected]> CommitDate: 2026-09-09 13:47:39 +0000 tests/fusefs: fix the build with gcc 16 Reviewed by: asomers MFC after: 3 days Sponsored by: The FreeBSD Foundation --- tests/sys/fs/fusefs/Makefile | 7 +++++++ tests/sys/fs/fusefs/utils.cc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile index 4ba477450c0a..9d63164db03b 100644 --- a/tests/sys/fs/fusefs/Makefile +++ b/tests/sys/fs/fusefs/Makefile @@ -99,6 +99,13 @@ CXXWARNFLAGS+= -Wno-vla-cxx-extension CXXFLAGS+= -I${SRCTOP}/tests CXXFLAGS+= -I${FUSEFS} +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 160000 +# gcc 16's aggressive inlining hits max-inline-insns-* limits and +# fails on these sources. Use a lower optimization setting to +# fix the build. +CXXFLAGS+= -O1 +.endif + LIBADD+= pthread LIBADD+= gmock gtest LIBADD+= util diff --git a/tests/sys/fs/fusefs/utils.cc b/tests/sys/fs/fusefs/utils.cc index 3471032b99a1..eece4ae100cf 100644 --- a/tests/sys/fs/fusefs/utils.cc +++ b/tests/sys/fs/fusefs/utils.cc @@ -182,7 +182,7 @@ void FuseTest::SetUp() { _) ).Times(AnyNumber()) .WillRepeatedly(Invoke(ReturnErrno(ENOSYS))); - } catch (std::system_error err) { + } catch (std::system_error const& err) { FAIL() << err.what(); } }
