From a95c0dc2d60791b42a17449fdb45f91224ebf171 Mon Sep 17 00:00:00 2001 From: "Stephen A. Wood" <saw@jlab.org> Date: Tue, 14 Jan 2014 11:06:05 -0500 Subject: [PATCH] Clean up some compiler warnings. --- src/THcDC.cxx | 1 + src/THcDriftChamber.cxx | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/THcDC.cxx b/src/THcDC.cxx index be89cfc..3831572 100644 --- a/src/THcDC.cxx +++ b/src/THcDC.cxx @@ -1017,6 +1017,7 @@ Double_t THcDC::DpsiFun(Double_t ray[4], Int_t plane) Int_t THcDC::End(THaRunBase* run) { // EffCalc(); + return 0; } //_____________________________________________________________________________ diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx index 69f0c75..9d7f936 100644 --- a/src/THcDriftChamber.cxx +++ b/src/THcDriftChamber.cxx @@ -309,7 +309,8 @@ Int_t THcDriftChamber::FindSpacePoints( void ) if(fHMSStyleChambers) { if(fRemove_Sppt_If_One_YPlane == 1) { // The routine is specific to HMS - Int_t ndest=DestroyPoorSpacePoints(); // Only for HMS? + //Int_t ndest= + DestroyPoorSpacePoints(); // Only for HMS? // Loop over space points and remove those with less than 4 planes // hit and missing hits in Y,Y' planes } @@ -855,7 +856,7 @@ void THcDriftChamber::ChooseSingleHit() // Gather the remaining hits Int_t finalnum = 0; for(Int_t ihit=0;ihit<startnum;ihit++) { - THcDCHit* hit = sp->GetHit(ihit); + //THcDCHit* hit = sp->GetHit(ihit); // if (fhdebugflagpr) cout << " good hit = "<< ihit << " " << goodhit[ihit] << " time = " << hit->GetTime() << endl; if(goodhit[ihit] > 0) { // Keep this hit if (ihit > finalnum) { // Move hit @@ -910,7 +911,7 @@ void THcDriftChamber::SelectSpacePoints() //if (fhdebugflagpr) cout << " sp pt = " << isp+1 << " # of hits = " << sp->GetNHits() << endl; for(Int_t ihit=0;ihit<sp->GetNHits();ihit++) { THcDCHit* hit = sp->GetHit(ihit); - THcDriftChamberPlane* plane=hit->GetWirePlane(); + //THcDriftChamberPlane* plane=hit->GetWirePlane(); // if (fhdebugflagpr) cout << ihit+1 << "selecting " << plane->GetPlaneNum() << " " << plane->GetChamberNum() << " " << hit->GetTime() << " " << hit->GetDist() << " " << plane->GetCentralTime() << " " << plane->GetDriftTimeSign() << endl; } } -- GitLab