Skip to content

Commit

Permalink
[L1-UPGRADE] [clang] Fix warnings reported by clang-16
Browse files Browse the repository at this point in the history
  • Loading branch information
aandvalenzuela committed May 15, 2023
1 parent deb2bbf commit 654bdc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions L1Trigger/TrackerDTC/plugins/ProducerED.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
DEFINE_FWK_MODULE(trackerDTC::ProducerED);

0 comments on commit 654bdc7

Please sign in to comment.