Skip to content

Commit

Permalink
fix: build with clang11 in centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
billowqiu committed Mar 24, 2024
1 parent 96701cb commit 6e5c2c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion bazel/envoy_internal.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ def envoy_copts(repository, test = False):
posix_options = [
"-Wall",
"-Wextra",
"-Werror",
"-Wnon-virtual-dtor",
"-Woverloaded-virtual",
"-Wold-style-cast",
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/cds_api_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CdsApiHelper::onConfigUpdate(const std::vector<Config::DecodedResourceRef>& adde
const auto eds_type_url =
Config::getTypeUrl<envoy::config::endpoint::v3::ClusterLoadAssignment>();
const auto leds_type_url = Config::getTypeUrl<envoy::config::endpoint::v3::LbEndpoint>();
maybe_resume_eds_leds = cm_.adsMux()->pause({eds_type_url, leds_type_url});
maybe_resume_eds_leds = cm_.adsMux()->pause(std::vector<std::string>{eds_type_url, leds_type_url});
}

ENVOY_LOG(info, "{}: add {} cluster(s), remove {} cluster(s)", name_, added_resources.size(),
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/cluster_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void ClusterManagerInitHelper::maybeFinishInitialize() {
const auto eds_type_url =
Config::getTypeUrl<envoy::config::endpoint::v3::ClusterLoadAssignment>();
const auto leds_type_url = Config::getTypeUrl<envoy::config::endpoint::v3::LbEndpoint>();
maybe_resume_eds_leds = cm_.adsMux()->pause({eds_type_url, leds_type_url});
maybe_resume_eds_leds = cm_.adsMux()->pause(std::vector<std::string>{eds_type_url, leds_type_url});
}
initializeSecondaryClusters();
}
Expand Down

0 comments on commit 6e5c2c6

Please sign in to comment.