Skip to content

Commit

Permalink
fix envoy build failed with unused variable factory_name
Browse files Browse the repository at this point in the history
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
  • Loading branch information
RuijingGuo committed Sep 23, 2020
2 parents 1b0e614 + 9c86553 commit 9df048e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/envoy/registry/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ template <class Base> class FactoryRegistry : public Logger::Loggable<Logger::Id
static std::unique_ptr<absl::flat_hash_map<std::string, Base*>> buildFactoriesByType() {
auto mapping = std::make_unique<absl::flat_hash_map<std::string, Base*>>();

for (const auto& [[[maybe_unused]]factory_name, factory] : factories()) {
for (const auto& [[[maybe_unused]] factory_name, factory] : factories()) {
if (factory == nullptr) {
continue;
}
Expand Down

0 comments on commit 9df048e

Please sign in to comment.