Skip to content

Commit

Permalink
Merge pull request #40577 from aandvalenzuela/geom-clang14-warnings
Browse files Browse the repository at this point in the history
[GEOMETRY] [CLANG] Fix unused-but-set-variable warnings
  • Loading branch information
cmsbuild authored Jan 24, 2023
2 parents 3272671 + 69bc4df commit f5f0b55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ DDCMSDetElementCreator::~DDCMSDetElementCreator() {
total.sensitives,
total.volumes);
printout(INFO, "DDCMSDetElementCreator", "+++++++++++++++ Summary of geometry depth analysis ++++++++++++++++++");
int totalCount = 0, totalDepth = 0;
int totalCount = 0;
map<dd4hep::DetElement, vector<pair<int, int> > > fields;
for (const auto& l : m_leafCount) {
dd4hep::DetElement de = l.first.first;
Expand All @@ -133,7 +133,6 @@ DDCMSDetElementCreator::~DDCMSDetElementCreator() {
l.second.second,
l.second.first);
fields[de].push_back(make_pair(l.first.second, l.second.first));
totalDepth += l.second.second;
++totalCount;
}
printout(INFO, "DDCMSDetElementCreator", "++ Summary: %-24s %d.", "Total DetElements:", totalCount);
Expand Down

0 comments on commit f5f0b55

Please sign in to comment.