Make TraceFlag trivially destructible

pull/17425/head
yang-g 6 years ago
parent 8ba8dadcc9
commit 22c74fcff5
  1. 3
      src/core/lib/debug/trace.h

@ -53,7 +53,8 @@ void grpc_tracer_enable_flag(grpc_core::TraceFlag* flag);
class TraceFlag {
public:
TraceFlag(bool default_enabled, const char* name);
~TraceFlag() {}
// This needs to be trivially destructible as it is used as global variable.
~TraceFlag() = default;
const char* name() const { return name_; }

Loading…
Cancel
Save