From 69bc4df555bf132e209b302480eca11b80b39e28 Mon Sep 17 00:00:00 2001 From: aandvalenzuela Date: Fri, 20 Jan 2023 14:59:38 +0100 Subject: [PATCH] Fix clang warnings --- .../DDCMS/plugins/dd4hep/DDCMSDetElementCreator.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DetectorDescription/DDCMS/plugins/dd4hep/DDCMSDetElementCreator.cc b/DetectorDescription/DDCMS/plugins/dd4hep/DDCMSDetElementCreator.cc index ddc0916611639..f433343b3d947 100644 --- a/DetectorDescription/DDCMS/plugins/dd4hep/DDCMSDetElementCreator.cc +++ b/DetectorDescription/DDCMS/plugins/dd4hep/DDCMSDetElementCreator.cc @@ -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 > > fields; for (const auto& l : m_leafCount) { dd4hep::DetElement de = l.first.first; @@ -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);