Skip to content

Commit

Permalink
cast variables to void to get rid of spurious compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Aug 9, 2024
1 parent 5392c1f commit bafdf2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DCHdigi/src/DCHdigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ std::pair<uint32_t,uint32_t> DCHdigi::CalculateClusters(const edm4hep::SimTracke
std::vector <float> vecEtr,vecEtrTot;
float sumVecTot,meanVecTot,sumVec,meanVec;
/////////end from Createclusters.h/////////

// get rid of spurious compiler error, Werror=unused-but-set-variable
(void)NCl;
(void)vecpar;
(void)sumVecTot;

int NCld;
TString parName;
double bg, Momentum, mass=-1e300;
Expand Down

0 comments on commit bafdf2a

Please sign in to comment.