Skip to content

Commit

Permalink
Merge pull request #40516 from smuzaffar/reconstruction-llvm14-warn3
Browse files Browse the repository at this point in the history
[RECONSTRUCTION] [CLANG] Fixes warnings reported by clang 14
  • Loading branch information
cmsbuild committed Feb 7, 2023
2 parents b6ecba4 + bb287eb commit 98f96ea
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CommonTools/Utils/test/testExpressionParser.cc
Expand Up @@ -264,16 +264,7 @@ void testExpressionParser::checkAll() {
std::cout << "Check for leaks in the " << (b ? "Lazy" : "standard") << " string parser" << std::endl;
expr.reset();
reco::parser::expressionParser<pat::Muon>("triggerObjectMatchesByPath('HLT_Something').size()", expr, b);
double res = 0;
for (size_t i = 0; i < 10 * 1000; ++i) {
for (size_t j = 0; j < 100; ++j) {
res += expr->value(o);
break;
}
break;
if (i % 1000 == 999)
std::cout << "iter " << i << std::endl;
}
expr->value(o);
}
}
reco::CandidatePtrVector ptrOverlaps;
Expand Down

0 comments on commit 98f96ea

Please sign in to comment.