summaryrefslogtreecommitdiff
path: root/libmysqlpp/unittests/testmysql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/unittests/testmysql.cpp')
-rw-r--r--libmysqlpp/unittests/testmysql.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmysqlpp/unittests/testmysql.cpp b/libmysqlpp/unittests/testmysql.cpp
index 7795a0b..17f807e 100644
--- a/libmysqlpp/unittests/testmysql.cpp
+++ b/libmysqlpp/unittests/testmysql.cpp
@@ -147,7 +147,9 @@ BOOST_AUTO_TEST_CASE( errors )
{
auto ro = DB::MockDatabase::openConnectionTo("mysqlmock");
BOOST_REQUIRE_THROW(ro->execute("nonsense"), DB::Error);
- BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("mysql", "server=nohost"), DB::ConnectionError);
+ BOOST_REQUIRE_THROW(
+ (void)DB::ConnectionFactory::createNew("mysql", "server=nohost"),
+ DB::ConnectionError);
}
BOOST_AUTO_TEST_SUITE_END();