Merge pull request #25290 from veblush/fix-missing-field-initializers

Fixed missing-field-initializers
pull/25329/head
Esun Kim 4 years ago committed by GitHub
commit 65811e3c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      bazel/copts.bzl
  2. 3
      src/core/ext/xds/xds_client_stats.cc

@ -43,7 +43,6 @@ GRPC_LLVM_WARNING_FLAGS = [
"-Wvla",
# Exceptions but will be removed
"-Wno-deprecated-declarations",
"-Wno-missing-field-initializers",
"-Wno-unused-function",
]

@ -137,7 +137,8 @@ XdsClusterLocalityStats::GetSnapshotAndReset() {
// not related to a single reporting interval.
total_requests_in_progress_.Load(MemoryOrder::RELAXED),
GetAndResetCounter(&total_error_requests_),
GetAndResetCounter(&total_issued_requests_)};
GetAndResetCounter(&total_issued_requests_),
{}};
MutexLock lock(&backend_metrics_mu_);
snapshot.backend_metrics = std::move(backend_metrics_);
return snapshot;

Loading…
Cancel
Save