Skip to content

Commit

Permalink
Merge pull request #46237 from smuzaffar/l1-clang-ana-warn
Browse files Browse the repository at this point in the history
[L1] [Clang]Cleanup clang-analyzer warnings
  • Loading branch information
cmsbuild authored Oct 7, 2024
2 parents bf5d89e + ef51c0b commit 7b9b219
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 7b9b219

Please sign in to comment.