From e44781e2909071a34b5846fd3ad63c74cf20e03d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 02:43:48 +0200 Subject: [PATCH] Avoid C4101 in explicit_operator_bool_noexcept.cpp --- test/explicit_operator_bool_noexcept.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/explicit_operator_bool_noexcept.cpp b/test/explicit_operator_bool_noexcept.cpp index d4b69eb..e913043 100644 --- a/test/explicit_operator_bool_noexcept.cpp +++ b/test/explicit_operator_bool_noexcept.cpp @@ -76,6 +76,11 @@ int main(int, char*[]) BOOST_TEST(noexcept(static_cast< bool >(noexcept_val1))); BOOST_TEST(noexcept(static_cast< bool >(noexcept_val2))); + (void)val1; + (void)val2; + (void)noexcept_val1; + (void)noexcept_val2; + return boost::report_errors(); }