From 0b18289a85325d7f5d37c0df27226eee31b3241a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 22 Jan 2018 05:21:08 +0200 Subject: [PATCH] Avoid unused expression warning by using the expression --- test/initialization_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/initialization_test.cpp b/test/initialization_test.cpp index 9c89a50..c5ea03c 100644 --- a/test/initialization_test.cpp +++ b/test/initialization_test.cpp @@ -10,19 +10,19 @@ // This test verifiies that the error_category vtable does not suffer from // order-of-initialization problems. -#include #include +#include struct foo { foo() { boost::system::error_code ec; - ec == boost::system::errc::permission_denied; + BOOST_TEST_NE( ec, boost::system::errc::permission_denied ); } } f; -int main( int, char ** ) +int main() { - return ::boost::report_errors(); + return boost::report_errors(); }