From fd1146f735494e7e3edcea7899cc4715b4556867 Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Sat, 13 Oct 2018 03:08:41 +0000 Subject: [PATCH] fix unused variable warning in a test --- test/tribool_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tribool_test.cpp b/test/tribool_test.cpp index f69fddd..77475d9 100644 --- a/test/tribool_test.cpp +++ b/test/tribool_test.cpp @@ -3,6 +3,7 @@ // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) +#include #include #include #include @@ -126,6 +127,7 @@ int test_main(int, char*[]) BOOST_CHECK(sizeof(array_ands) / sizeof(char) == 3); constexpr bool res_safe_bool = static_cast( tribool(true) ); + boost::ignore_unused(res_safe_bool); constexpr tribool xxx = (tribool(true) || tribool(indeterminate)); static_assert(xxx, "Must be true!"); #endif