@@ -71,6 +71,11 @@
}
void TraceFlagList::Add(TraceFlag* flag) {
+ for (TraceFlag* t = root_tracer_; t != nullptr; t = t->next_tracer_) {
+ if (t == flag) {
+ return;
+ }
+ }
flag->next_tracer_ = root_tracer_;
root_tracer_ = flag;
}
@@ -37,6 +37,7 @@
#include "src/core/lib/profiling/timers.h"
#include "src/core/lib/slice/slice_internal.h"
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
grpc_core::DebugOnlyTraceFlag grpc_trace_error_refcount(false,
"error_refcount");
grpc_core::DebugOnlyTraceFlag grpc_trace_closure(false, "closure");
@@ -54,7 +54,7 @@
class WeightedTargetLbConfig : public LoadBalancingPolicy::Config {
public:
struct ChildConfig {
- uint32_t weight;
+ uint32_t weight{0};
RefCountedPtr<LoadBalancingPolicy::Config> config;
};
@@ -403,7 +403,7 @@
grpc_cc_library(
name = "grpc++_public_hdrs",
- hdrs = GRPCXX_PUBLIC_HDRS,
+ hdrs = GRPCXX_PUBLIC_HDRS + GRPC_PUBLIC_HDRS + GPR_PUBLIC_HDRS,
external_deps = [
"absl/synchronization",
"protobuf_headers",
@@ -3285,6 +3285,7 @@
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
+ alwayslink = 1,
visibility = ["@grpc:alt_grpc++_base_legacy"],
deps = [
"gpr_base",