From 0c25f6be3a62d78ef80d5186ec52c0693f97f882 Mon Sep 17 00:00:00 2001 From: Benwei Shi Date: Wed, 3 Jan 2024 20:00:12 -0800 Subject: [PATCH] Remove Wshadow warning for proxygen/lib/http/session/HTTPSession.cpp Summary: Fix a -Wshadow warning here Reviewed By: r-barnes Differential Revision: D52340431 fbshipit-source-id: d4098bb20d51702b69013b7ecf1edc49c93037cf --- proxygen/lib/http/session/HTTPSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxygen/lib/http/session/HTTPSession.cpp b/proxygen/lib/http/session/HTTPSession.cpp index 5362a18cf8..2b91b0fa5c 100644 --- a/proxygen/lib/http/session/HTTPSession.cpp +++ b/proxygen/lib/http/session/HTTPSession.cpp @@ -750,8 +750,8 @@ void HTTPSession::onMessageBegin(HTTPCodec::StreamID streamID, // txns haven't completed yet. Pause reads until they complete DCHECK_GE(transactions_.size(), 2); std::map sortedTxns; - for (auto& txn : transactions_) { - sortedTxns.emplace(txn.first, &txn.second); + for (auto& x : transactions_) { + sortedTxns.emplace(x.first, &x.second); } for (auto it = ++sortedTxns.rbegin(); it != sortedTxns.rend(); ++it) { DCHECK(it->second->isIngressEOMSeen());