diff options
author | Vijay Pai <vpai@google.com> | 2018-09-20 16:54:35 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-09-20 18:09:27 -0700 |
commit | 91346398770a93f23037f4dec9cf1e5273bb0634 (patch) | |
tree | d3a5c3ab3df335d19af5b8ce4ff26fded99a6117 /test/cpp/microbenchmarks | |
parent | 3ee2919623dfcc11ac58e3e2a69c8986a2dd90eb (diff) |
Warn on non-virtual destructor if class has virtual functions
Diffstat (limited to 'test/cpp/microbenchmarks')
-rw-r--r-- | test/cpp/microbenchmarks/fullstack_fixtures.h | 1 | ||||
-rw-r--r-- | test/cpp/microbenchmarks/helpers.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/microbenchmarks/fullstack_fixtures.h b/test/cpp/microbenchmarks/fullstack_fixtures.h index 9d70277fbc..d390ae08f6 100644 --- a/test/cpp/microbenchmarks/fullstack_fixtures.h +++ b/test/cpp/microbenchmarks/fullstack_fixtures.h @@ -48,6 +48,7 @@ namespace testing { class FixtureConfiguration { public: + virtual ~FixtureConfiguration() {} virtual void ApplyCommonChannelArguments(ChannelArguments* c) const { c->SetInt(GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH, INT_MAX); c->SetInt(GRPC_ARG_MAX_SEND_MESSAGE_LENGTH, INT_MAX); diff --git a/test/cpp/microbenchmarks/helpers.h b/test/cpp/microbenchmarks/helpers.h index 4aabd4094a..25d34b5f87 100644 --- a/test/cpp/microbenchmarks/helpers.h +++ b/test/cpp/microbenchmarks/helpers.h @@ -63,6 +63,7 @@ extern gpr_atm gpr_now_call_count; class TrackCounters { public: TrackCounters() { grpc_stats_collect(&stats_begin_); } + virtual ~TrackCounters() {} virtual void Finish(benchmark::State& state); virtual void AddLabel(const grpc::string& label); virtual void AddToLabel(std::ostream& out, benchmark::State& state); |