Skip to content

Commit 79c1e01

Browse files
authored
Merge pull request #46018 from iarspider/iarspider-patch-20240917-2
Fix 'Assigned value is garbage or undefined' warning from llvm-analyzer in AlgoMuon
2 parents e939939 + c607ac5 commit 79c1e01

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

L1Trigger/L1TMuonOverlap/interface/AlgoMuon.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ class AlgoMuon {
77
public:
88
// AlgoMuon() : pt(-1.), eta(99.), phi(9999.), disc(-999), bx(0), q(-1), charge(99), refLayer(-1), hits(0) {} // the old one version
99
AlgoMuon()
10-
: m_disc(-999), m_phi(9999), m_eta(99), m_refLayer(-1), m_hits(0), m_q(-1), m_bx(0), m_pt(-1), m_charge(99) {}
10+
: m_disc(-999),
11+
m_phi(9999),
12+
m_eta(99),
13+
m_refLayer(-1),
14+
m_hits(0),
15+
m_q(-1),
16+
m_bx(0),
17+
m_pt(-1),
18+
m_charge(99),
19+
m_phiRHit(9999) {}
1120
AlgoMuon(int disc = -999,
1221
int phi = 9999,
1322
int eta = 99,

0 commit comments

Comments
 (0)