Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaning static analyzer warnings #13585

Merged
merged 3 commits into from Mar 6, 2016

Conversation

tmrhombus
Copy link

No description provided.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2016

A new Pull Request was created by @tmrhombus (T.M.Perry) for CMSSW_8_1_X.

It involves the following packages:

RecoJets/JetAnalyzers

@cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @TaiSakuma, @jdolen, @nhanvtran, @schoef, @mariadalfonso this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

} catch (...) {
cout << "No HO RecHits." << endl;
}
****/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this (HORecHitCollection loop) commented out?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented it out because the only thing it did was loop. There was a cout stamement that this loop could have engaged, but that was already commented out in the code as I found it. The code was effectively:

for(i in collection){
// cout<<"we have the collection"<<endl;
}

I went the step further to say that there is no point in looping.

@cvuosalo
Copy link
Contributor

cvuosalo commented Mar 3, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11699/console

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2016

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2016

@cvuosalo
Copy link
Contributor

cvuosalo commented Mar 4, 2016

+1

For #13585 3b7fda8

Minor code clean-up of some JetAnalyzer files. There should be no change in monitored quantities.

The code changes are satisfactory, and Jenkins tests against baseline CMSSW_8_1_X_2016-03-03-1100 show no significant differences, as expected.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2016

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

davidlange6 added a commit that referenced this pull request Mar 6, 2016
@davidlange6 davidlange6 merged commit 9217ea5 into cms-sw:CMSSW_8_1_X Mar 6, 2016
@tmrhombus tmrhombus deleted the tmp_staticAnaWarns branch May 9, 2016 12:39
@tmrhombus tmrhombus restored the tmp_staticAnaWarns branch May 9, 2016 12:39
@tmrhombus tmrhombus deleted the tmp_staticAnaWarns branch May 9, 2016 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants