Skip to content

Commit

Permalink
[L1] [Clang]Cleanup clang-analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 3, 2024
1 parent 6f0c989 commit ef51c0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SimCalorimetry/EcalTrigPrimAlgos/src/EcalFenixMaxof2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ void EcalFenixMaxof2::process(

for (unsigned int i = 0; i < output.size(); i++) {
if (nstrip - 1 == 0) {
output[i] = strip_oddmask[0][i] * ((bypasslinout[0][i]) & mask);
[[clang::suppress]] output[i] = strip_oddmask[0][i] * ((bypasslinout[0][i]) & mask);
} else {
for (int i2strip = 0; i2strip < nstrip - 1; ++i2strip) {
sumby2_[i2strip][i] = strip_oddmask[i2strip][i] * ((bypasslinout[i2strip][i]) & mask) +
strip_oddmask[i2strip + 1][i] * ((bypasslinout[i2strip + 1][i]) & mask);
[[clang::suppress]] sumby2_[i2strip][i] =
strip_oddmask[i2strip][i] * ((bypasslinout[i2strip][i]) & mask) +
strip_oddmask[i2strip + 1][i] * ((bypasslinout[i2strip + 1][i]) & mask);
if (sumby2_[i2strip][i] > output[i]) {
output[i] = sumby2_[i2strip][i];
}
Expand Down

0 comments on commit ef51c0b

Please sign in to comment.