Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2018-07-02 11:13:07 +0200
committerMartin Hořeňovský2018-07-02 17:36:13 +0200
commite1d81174dba1a7d81eb348490005dfc02a648c7e (patch)
tree946dd410cd355691d62b93b52cf61b7c45577370 /projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
parent4846ad59e10e6174df1c4679cfef5bc80fe3f5d7 (diff)
downloadcatch3-e1d81174dba1a7d81eb348490005dfc02a648c7e.tar.gz
Add -Wmissing-declarations to the SelfTest project
This required some clean-up in our test files
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp')
-rw-r--r--projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp b/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
index a1f8c233..3f6fa05f 100644
--- a/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
+++ b/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
@@ -116,6 +116,8 @@ TEST_CASE("Static arrays are convertible to string", "[toString]") {
}
}
+namespace {
+
struct WhatException : std::exception {
char const* what() const noexcept override {
return "This exception has overriden what() method";
@@ -136,6 +138,8 @@ struct StringMakerException : std::exception {
~StringMakerException() override;
};
+} // end anonymous namespace
+
namespace Catch {
template <>
struct StringMaker<StringMakerException> {