From 9c86553e36a73fdb034666df216ab13d2e60b0d2 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 16 Sep 2020 16:24:51 +0800 Subject: [PATCH] fix envoy build failed with unused variable factory_name Signed-off-by: Guo Ruijing --- include/envoy/registry/registry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/envoy/registry/registry.h b/include/envoy/registry/registry.h index b52686036074..37583c8accae 100644 --- a/include/envoy/registry/registry.h +++ b/include/envoy/registry/registry.h @@ -345,7 +345,7 @@ template class FactoryRegistry : public Logger::Loggable> buildFactoriesByType() { auto mapping = std::make_unique>(); - for (const auto& [factory_name, factory] : factories()) { + for (const auto& [[[maybe_unused]]factory_name, factory] : factories()) { if (factory == nullptr) { continue; }