diff options
| author | Igor Murashkin | 2018-08-06 16:20:59 -0700 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-08-17 17:14:56 +0200 |
| commit | 38248f3f2c13867917ee50738e290160cfd5cebc (patch) | |
| tree | c571b64a2c318c0c4afbb207861af3966f5d8f7e /include | |
| parent | c9de7dd12d2971c63f9d32ce5459eb98f2fec13d (diff) | |
| download | catch3-38248f3f2c13867917ee50738e290160cfd5cebc.tar.gz | |
Add pragma ignore for -Wnon-virtual-dtor in Catch matchers
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_matchers.h | 9 |
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> { |