File tree 3 files changed +20
-0
lines changed 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ function(add_warnings_to_targets targets)
68
68
"-Wmissing-noreturn"
69
69
"-Wmissing-prototypes"
70
70
"-Wmissing-variable-declarations"
71
+ "-Wnon-virtual-dtor"
71
72
"-Wnull-dereference"
72
73
"-Wold-style-cast"
73
74
"-Woverloaded-virtual"
Original file line number Diff line number Diff line change 110
110
#ifdef __clang__
111
111
# pragma clang diagnostic push
112
112
# pragma clang diagnostic ignored "-Wsign-compare"
113
+ # pragma clang diagnostic ignored "-Wnon-virtual-dtor"
113
114
#elif defined __GNUC__
114
115
# pragma GCC diagnostic push
115
116
# pragma GCC diagnostic ignored "-Wsign-compare"
117
+ # pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
116
118
#endif
117
119
118
120
#if defined(CATCH_CPP20_OR_GREATER) && __has_include(<compare>)
Original file line number Diff line number Diff line change 18
18
19
19
namespace Catch {
20
20
21
+ #ifdef __clang__
22
+ # pragma clang diagnostic push
23
+ # pragma clang diagnostic ignored "-Wsign-compare"
24
+ # pragma clang diagnostic ignored "-Wnon-virtual-dtor"
25
+ #elif defined __GNUC__
26
+ # pragma GCC diagnostic push
27
+ # pragma GCC diagnostic ignored "-Wsign-compare"
28
+ # pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
29
+ #endif
30
+
21
31
template <typename ArgT, typename MatcherT>
22
32
class MatchExpr : public ITransientExpression {
23
33
ArgT && m_arg;
@@ -36,6 +46,13 @@ namespace Catch {
36
46
}
37
47
};
38
48
49
+ #ifdef __clang__
50
+ # pragma clang diagnostic pop
51
+ #elif defined __GNUC__
52
+ # pragma GCC diagnostic pop
53
+ #endif
54
+
55
+
39
56
namespace Matchers {
40
57
template <typename ArgT>
41
58
class MatcherBase ;
You can’t perform that action at this time.
0 commit comments