Skip to content

Commit

Permalink
Merge pull request #34852 from iarspider/patch-3
Browse files Browse the repository at this point in the history
[GCC11] Fix warning: loop variable binds to a temporary
  • Loading branch information
cmsbuild authored Aug 13, 2021
2 parents 405e624 + e0e933a commit b8480c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/plugins/PATObjectUserDataEmbedder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace pat {
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("src");
for (const std::string &what : {"userFloats", "userInts", "userIntFromBools", "userCands"}) {
for (auto &&what : {"userFloats", "userInts", "userIntFromBools", "userCands"}) {
edm::ParameterSetDescription descNested;
descNested.addWildcard<edm::InputTag>("*");
desc.add<edm::ParameterSetDescription>(what, descNested);
Expand Down

0 comments on commit b8480c7

Please sign in to comment.