Skip to content

Commit

Permalink
Merge pull request #42391 from iarspider/L1Trigger_Phase2L1GT_gcc12
Browse files Browse the repository at this point in the history
Fix maybe-uninitialized warnings in L1GTDeltaCut.h
  • Loading branch information
cmsbuild authored Jul 28, 2023
2 parents 0967442 + b6035ae commit 8ac0b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ namespace l1t {
res &= os_ ? obj1.hwCharge() != obj2.hwCharge() : true;
res &= ss_ ? obj1.hwCharge() == obj2.hwCharge() : true;

int32_t lutCoshDEta;
int32_t lutCoshDEta = 0;
if (dEta) {
lutCoshDEta = dEta < DETA_LUT_SPLIT ? coshEtaLUT_[dEta.value()] : coshEtaLUT2_[dEta.value() - DETA_LUT_SPLIT];
}

// Optimization: (cos(x + pi) = -cos(x), x in [0, pi))
int32_t lutCosDPhi;
int32_t lutCosDPhi = 0;
if (dPhi) {
lutCosDPhi = dPhi >= HW_PI ? -cosPhiLUT_[dPhi.value()] : cosPhiLUT_[dPhi.value()];
}
Expand Down

0 comments on commit 8ac0b8b

Please sign in to comment.