Skip to content

Commit 224b755

Browse files
jll63claude
andcommitted
fix GCC 16 false positive breaking unit test framework shared build
Use <warnings-as-errors>off instead of <warnings>off for the boost_unit_test_framework dependency. GCC 16 fires a spurious -Warray-bounds in Boost.Test's junit_log_formatter.hpp when compiling unit_test_log.cpp in shared-link mode; <warnings>off does not suppress -Werror, so the .so fails to build. Same pattern used by Boost.Redis and Boost.MySQL. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 49a3b11 commit 224b755

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/Jamfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ project
3030

3131
alias unit_test_framework
3232
: # sources
33-
/boost/test//boost_unit_test_framework/<warnings>off
33+
/boost/test//boost_unit_test_framework/<warnings-as-errors>off
3434
;
3535

3636
for local src in [ glob test_*.cpp ]

0 commit comments

Comments
 (0)