From b23df0f222a2a57c42a72e24cb1a5ca049e3f856 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 6 Jan 2024 14:59:12 +0200 Subject: [PATCH] Enable warnings as errors in test/Jamfile --- test/Jamfile.v2 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index edf82f1..4b0c4af 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -9,6 +9,25 @@ # bring in rules for testing import testing ; +local gcc-flags = -Wundef ; +local clang-flags = ; # $(gcc-flags) ; + +project + : default-build + + pedantic + + : requirements + + msvc:on + + gcc:on + gcc:$(gcc-flags) + + clang:on + clang:$(clang-flags) + ; + # quick test (for CI) run quick.cpp ; @@ -60,7 +79,8 @@ run bind_type_test.cpp ; run bind_unique_ptr_test.cpp ; run bind_nested_rv_test.cpp ; compile arg_copy_test.cpp ; -compile-fail arg_copy_fail.cpp ; +compile-fail arg_copy_fail.cpp + : off ; run placeholder_std_bind_test.cpp ; run bind_fastcall_test.cpp ; run bind_stdcall_test.cpp ;