From ed140d8d2e220fe61982ca585b824730d52461a0 Mon Sep 17 00:00:00 2001 From: Mircho Rodozov Date: Fri, 8 Mar 2019 15:43:06 +0100 Subject: [PATCH] Fix clang warnings in Calibration --- .../EcalAlCaRecoProducers/plugins/AlCaECALRecHitReducer.cc | 2 -- Calibration/HcalCalibAlgos/test/HcalCorrPFCalculation.cc | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Calibration/EcalAlCaRecoProducers/plugins/AlCaECALRecHitReducer.cc b/Calibration/EcalAlCaRecoProducers/plugins/AlCaECALRecHitReducer.cc index 016a46298e941..0a9751a470ecc 100644 --- a/Calibration/EcalAlCaRecoProducers/plugins/AlCaECALRecHitReducer.cc +++ b/Calibration/EcalAlCaRecoProducers/plugins/AlCaECALRecHitReducer.cc @@ -73,8 +73,6 @@ AlCaECALRecHitReducer::produce (edm::Event& iEvent, using namespace edm; //using namespace std; - EcalRecHitCollection::const_iterator recHit_itr; - edm::ESHandle theCaloTopology; iSetup.get().get(theCaloTopology); const CaloTopology *caloTopology = theCaloTopology.product(); diff --git a/Calibration/HcalCalibAlgos/test/HcalCorrPFCalculation.cc b/Calibration/HcalCalibAlgos/test/HcalCorrPFCalculation.cc index e37b966ce0c5c..da5d3690e6c2a 100755 --- a/Calibration/HcalCalibAlgos/test/HcalCorrPFCalculation.cc +++ b/Calibration/HcalCalibAlgos/test/HcalCorrPFCalculation.cc @@ -371,8 +371,7 @@ void HcalCorrPFCalculation::analyze(edm::Event const& ev, edm::EventSetup const& /* Finding the closest cell at Hcal */ Int_t iphitrue = -10; Int_t ietatrue = 100; - HcalDetId tempId, tempId1, tempId2; - + HcalDetId tempId; if (abs(etaParticle)<1.392) {