Add pragma ignore for -Wnon-virtual-dtor in Catch matchers

This commit is contained in:
Igor Murashkin 2018-08-06 16:20:59 -07:00 committed by Martin Hořeňovský
parent c9de7dd12d
commit 38248f3f2c
1 changed files with 9 additions and 0 deletions

View File

@ -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> {