From b6035ae79097efafd568b2c7650ac62dfc25b200 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Thu, 27 Jul 2023 14:52:28 +0200 Subject: [PATCH] Fix maybe-uninitialized warnings in L1GTDeltaCut.h --- L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h b/L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h index 2683ff9398334..71a585113cabd 100644 --- a/L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h +++ b/L1Trigger/Phase2L1GT/plugins/L1GTDeltaCut.h @@ -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()]; }