From 13ca7fa6e567ca4f8e2503c04d16e419c584fe8d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 11 Jan 2021 22:34:59 +0100 Subject: Fixed implicit declarations and misc warnings. --- tests/testUtils.hpp | 2 +- tests/utility/urlTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index e6bf1eee..f625dec0 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -76,7 +76,7 @@ struct AutoRegisterModule { \ AutoRegisterModule() { \ static const char* moduleName = getTestModuleNameFromSourceFile(__FILE__); \ - static CppUnit::AutoRegisterSuite (autoRegisterRegistry1); \ + static CppUnit::AutoRegisterSuite autoRegisterRegistry1; \ static CppUnit::AutoRegisterSuite (autoRegisterRegistry2)(moduleName); \ registerTestModule(moduleName); \ } \ diff --git a/tests/utility/urlTest.cpp b/tests/utility/urlTest.cpp index 36820a68..d26cfb81 100644 --- a/tests/utility/urlTest.cpp +++ b/tests/utility/urlTest.cpp @@ -50,7 +50,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest) u = vmime::utility::url(str); - } catch (vmime::exceptions::malformed_url) { + } catch (vmime::exceptions::malformed_url&) { return false; } -- cgit v1.2.3