From 654bdc7ff70f83955c2581e676d1ec3494f9092f Mon Sep 17 00:00:00 2001 From: aandvalenzuela Date: Mon, 15 May 2023 15:01:12 +0200 Subject: [PATCH] [L1-UPGRADE] [clang] Fix warnings reported by clang-16 --- L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc | 3 +-- L1Trigger/TrackerDTC/plugins/ProducerED.cc | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc b/L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc index be8bc8193f634..abae4a2af3108 100644 --- a/L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc +++ b/L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc @@ -717,10 +717,9 @@ void MuonPathAnalyzerInChamber::calculateFitParameters(MuonPathPtr &mpath, void MuonPathAnalyzerInChamber::evaluateQuality(MuonPathPtr &mPath) { mPath->setQuality(NOPATH); - int validHits(0), nPrimsUp(0), nPrimsDown(0); + int nPrimsUp(0), nPrimsDown(0); for (int i = 0; i < NUM_LAYERS_2SL; i++) { if (mPath->primitive(i)->isValidTime()) { - validHits++; if (i < 4) nPrimsDown++; else if (i >= 4) diff --git a/L1Trigger/TrackerDTC/plugins/ProducerED.cc b/L1Trigger/TrackerDTC/plugins/ProducerED.cc index 23e763c007960..8017496fc3358 100644 --- a/L1Trigger/TrackerDTC/plugins/ProducerED.cc +++ b/L1Trigger/TrackerDTC/plugins/ProducerED.cc @@ -115,10 +115,10 @@ namespace trackerDTC { } } // store ED products - iEvent.emplace(edPutTokenAccepted_, move(productAccepted)); - iEvent.emplace(edPutTokenLost_, move(productLost)); + iEvent.emplace(edPutTokenAccepted_, std::move(productAccepted)); + iEvent.emplace(edPutTokenLost_, std::move(productLost)); } } // namespace trackerDTC -DEFINE_FWK_MODULE(trackerDTC::ProducerED); \ No newline at end of file +DEFINE_FWK_MODULE(trackerDTC::ProducerED);