aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2021-01-11 21:34:59 +0000
committerVincent Richard <[email protected]>2021-01-11 21:34:59 +0000
commit13ca7fa6e567ca4f8e2503c04d16e419c584fe8d (patch)
tree03866fe3d1a22c533902a8a39c65223bba9695d7 /tests
parentFixed line endings. (diff)
downloadvmime-13ca7fa6e567ca4f8e2503c04d16e419c584fe8d.tar.gz
vmime-13ca7fa6e567ca4f8e2503c04d16e419c584fe8d.zip
Fixed implicit declarations and misc warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/testUtils.hpp2
-rw-r--r--tests/utility/urlTest.cpp2
2 files changed, 2 insertions, 2 deletions
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 <VMIME_TEST_SUITE>(autoRegisterRegistry1); \
+ static CppUnit::AutoRegisterSuite <VMIME_TEST_SUITE> autoRegisterRegistry1; \
static CppUnit::AutoRegisterSuite <VMIME_TEST_SUITE>(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;
}