From: Eduard Bagdasaryan Date: Thu, 13 Jan 2022 18:00:56 +0000 (+0000) Subject: Fix GCC v5.5.0 build after 82fe21f (#962) X-Git-Tag: SQUID_6_0_1~251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df0bc0f4ff158b76e6a05c64fc83b96219605b4a;p=thirdparty%2Fsquid.git Fix GCC v5.5.0 build after 82fe21f (#962) Old problems revealed by recent commits: XactionRep.cc:174:20: error: declaration of 'String name' shadows a parameter [-Werror=shadow] XactionRep.cc:486:33: error: declaration of 'services' shadows a previous local [-Werror=shadow] --- diff --git a/src/adaptation/ecap/XactionRep.cc b/src/adaptation/ecap/XactionRep.cc index 249359b23b..ea0795a737 100644 --- a/src/adaptation/ecap/XactionRep.cc +++ b/src/adaptation/ecap/XactionRep.cc @@ -163,12 +163,12 @@ Adaptation::Ecap::XactionRep::usernameValue() const } const libecap::Area -Adaptation::Ecap::XactionRep::masterxSharedValue(const libecap::Name &name) const +Adaptation::Ecap::XactionRep::masterxSharedValue(const libecap::Name &sharedName) const { const HttpRequest *request = dynamic_cast(theCauseRep ? theCauseRep->raw().header : theVirginRep.raw().header); Must(request); - if (name.known()) { // must check to avoid empty names matching unset cfg + if (sharedName.known()) { // must check to avoid empty names matching unset cfg Adaptation::History::Pointer ah = request->adaptHistory(false); if (ah != NULL) { String name, value; @@ -482,7 +482,6 @@ Adaptation::Ecap::XactionRep::updateHistory(Http::Message *adapted) // update the adaptation plan if needed if (service().cfg().routing) { - String services; if (const libecap::Area services = theMaster->option(libecap::metaNextServices)) { Adaptation::History::Pointer ah = request->adaptHistory(true); if (ah != NULL)