diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:54:49 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:54:49 +0000 |
commit | ef7a2108654dd8afb18fd27f0f84f152f7f796cc (patch) | |
tree | 5057132d581f4b3e278e2ca340fcb17203d97c1a /libmysqlpp/unittests | |
parent | Fixes for tidy (diff) | |
download | libdbpp-mysql-ef7a2108654dd8afb18fd27f0f84f152f7f796cc.tar.bz2 libdbpp-mysql-ef7a2108654dd8afb18fd27f0f84f152f7f796cc.tar.xz libdbpp-mysql-ef7a2108654dd8afb18fd27f0f84f152f7f796cc.zip |
Fixes for tidylibdbpp-mysql-1.4.3
Diffstat (limited to 'libmysqlpp/unittests')
-rw-r--r-- | libmysqlpp/unittests/testmysql.cpp | 4 |
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(); |