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

Validation/RecoParticleFlow : gcc 6.0 misleading-indentation warning flags potential bug; with bug fix #14999

Merged
merged 3 commits into from Jun 29, 2016
Merged

Validation/RecoParticleFlow : gcc 6.0 misleading-indentation warning flags potential bug; with bug fix #14999

merged 3 commits into from Jun 29, 2016

Conversation

gartung
Copy link
Member

@gartung gartung commented Jun 27, 2016

/build/cmsbuild/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8258e37281729e179b5af9c3b033d930/opt/cmssw/slc6_amd64_gcc600/cms/cmssw/CMSSW_8_1_X_2016-06-26-2300/src/Validation/RecoParticleFlow/bin/include/Plot1D.h: In member function 'void PlotCompareUtility::makePlots(HistoData*) [with int PlotType = 0]':
/build/cmsbuild/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8258e37281729e179b5af9c3b033d930/opt/cmssw/slc6_amd64_gcc600/cms/cmssw/CMSSW_8_1_X_2016-06-26-2300/src/Validation/RecoParticleFlow/bin/include/Plot1D.h:92:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (ksThreshold > 0) title += " KS Score = "; title += HD->getKSScore();
^~
/build/cmsbuild/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8258e37281729e179b5af9c3b033d930/opt/cmssw/slc6_amd64_gcc600/cms/cmssw/CMSSW_8_1_X_2016-06-26-2300/src/Validation/RecoParticleFlow/bin/include/Plot1D.h:92:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (ksThreshold > 0) title += " KS Score = "; title += HD->getKSScore();
^~~~~
/build/cmsbuild/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8258e37281729e179b5af9c3b033d930/opt/cmssw/slc6_amd64_gcc600/cms/cmssw/CMSSW_8_1_X_2016-06-26-2300/src/Validation/RecoParticleFlow/bin/include/Plot1D.h:93:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (chi2Threshold > 0) title += " Chi^2 Score = "; title += HD->getChi2Score();
^~
/build/cmsbuild/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8258e37281729e179b5af9c3b033d930/opt/cmssw/slc6_amd64_gcc600/cms/cmssw/CMSSW_8_1_X_2016-06-26-2300/src/Validation/RecoParticleFlow/bin/include/Plot1D.h:93:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (chi2Threshold > 0) title += " Chi^2 Score = "; title += HD->getChi2Score();
^~~~~

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @gartung (Patrick Gartung) for CMSSW_8_1_X.

It involves the following packages:

Validation/RecoParticleFlow

@cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 28, 2016

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

@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

-1

Tested at: 439b47f

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-14999/13716/summary.html

I found follow errors while testing this PR

Failed tests: RelVals

  • RelVals:

When I ran the RelVals I found an error in the following worklfows:
50202.0 step2

runTheMatrix-results/50202.0_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50/step2_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50.log
25202.0 step2
runTheMatrix-results/25202.0_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25/step2_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25.log
4.22 step1
DAS Error
136.731 step1
DAS Error
140.53 step1
DAS Error
1000.0 step1
DAS Error
1001.0 step1
DAS Error
1003.0 step1
DAS Error

@gartung gartung changed the title Fix this 'if' clause does not guard... [-Wmisleading-indentation] gcc 6.0 misleading-indentation warning flags potential bug Jun 28, 2016
@@ -89,8 +89,10 @@ void PlotCompareUtility::makePlots<Plot1D>(HistoData *HD) {

// place the test results as the title
TString title = HD->getName();
if (ksThreshold > 0) title += " KS Score = "; title += HD->getKSScore();
Copy link
Member Author

@gartung gartung Jun 28, 2016

Choose a reason for hiding this comment

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

Did the author intend for these two statements to be enclosed in curly braces?

@cmsbuild
Copy link
Contributor

Pull request #14999 was updated. @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please check and sign again.

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 28, 2016

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

@cmsbuild
Copy link
Contributor

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

@gartung gartung changed the title gcc 6.0 misleading-indentation warning flags potential bug Validation/RecoParticleFlow : gcc 6.0 misleading-indentation warning flags potential bug; with bug fix Jun 28, 2016
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit c311733 into cms-sw:CMSSW_8_1_X Jun 29, 2016
@gartung gartung deleted the Validation-RecoParticleFlow-fix-indent-not-guard-warn branch July 8, 2016 18:10
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

4 participants