mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 20:47:14 +02:00
Avoid unused expression warning by using the expression
This commit is contained in:
@ -10,19 +10,19 @@
|
|||||||
// This test verifiies that the error_category vtable does not suffer from
|
// This test verifiies that the error_category vtable does not suffer from
|
||||||
// order-of-initialization problems.
|
// order-of-initialization problems.
|
||||||
|
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
struct foo
|
struct foo
|
||||||
{
|
{
|
||||||
foo()
|
foo()
|
||||||
{
|
{
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
ec == boost::system::errc::permission_denied;
|
BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
|
||||||
}
|
}
|
||||||
} f;
|
} f;
|
||||||
|
|
||||||
int main( int, char ** )
|
int main()
|
||||||
{
|
{
|
||||||
return ::boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user