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

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorIgor Murashkin2018-08-06 16:20:59 -0700
committerMartin Hořeňovský2018-08-17 17:14:56 +0200
commit38248f3f2c13867917ee50738e290160cfd5cebc (patch)
treec571b64a2c318c0c4afbb207861af3966f5d8f7e /include
parentc9de7dd12d2971c63f9d32ce5459eb98f2fec13d (diff)
downloadcatch3-38248f3f2c13867917ee50738e290160cfd5cebc.tar.gz
Add pragma ignore for -Wnon-virtual-dtor in Catch matchers
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_matchers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/internal/catch_matchers.h b/include/internal/catch_matchers.h
index f2e3aee9..29692fc0 100644
--- a/include/internal/catch_matchers.h
+++ b/include/internal/catch_matchers.h
@@ -34,6 +34,11 @@ namespace Matchers {
mutable std::string m_cachedToString;
};
+#ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wnon-virtual-dtor"
+#endif
+
template<typename ObjectT>
struct MatcherMethod {
virtual bool match( ObjectT const& arg ) const = 0;
@@ -43,6 +48,10 @@ namespace Matchers {
virtual bool match( PtrT* arg ) const = 0;
};
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
+
template<typename T>
struct MatcherBase : MatcherUntypedBase, MatcherMethod<T> {