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

CalibCalorimetry/CaloTPG :formatting fix for gcc 6.0 misleading-indentation warning #15002

Merged
merged 2 commits into from Jul 21, 2016
Merged

CalibCalorimetry/CaloTPG :formatting fix for gcc 6.0 misleading-indentation warning #15002

merged 2 commits into from Jul 21, 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/CalibCalorimetry/CaloTPG/src/CaloTPGTranscoderULUT.cc:59:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ((not HcalGenericDetId(*i).isHcalDetId()) and
^~
/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/CalibCalorimetry/CaloTPG/src/CaloTPGTranscoderULUT.cc:63:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
continue;
^~~~~~~~

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

CalibCalorimetry/CaloTPG

@ghellwig, @cerminar, @cmsbuild, @rekovic, @franzoni, @mmusich, @mulhearn, @davidlange6 can you please review it and eventually sign? Thanks.
@ghellwig, @tocheng 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

@mmusich
Copy link
Contributor

mmusich commented Jun 28, 2016

please test

@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/13712/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@ghellwig
Copy link

@gartung can you clarify the intention of splitting the change into two commits?
Do want to point out that someone might have forgotten the curly braces when writing the code?

@gartung
Copy link
Member Author

gartung commented Jun 28, 2016

My initial commit added the curly braces, but I did not want to change the meaning of the code.

@ghellwig
Copy link

+1
the last commit to this file (8b89099) clearly suggests that this was just an accidental identation

@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
@@ -60,7 +60,7 @@ void CaloTPGTranscoderULUT::loadHCALCompress(HcalLutMetadata const& lutMetadata,
(not HcalGenericDetId(*i).isHcalZDCDetId()) and
(not HcalGenericDetId(*i).isHcalCastorDetId()))
edm::LogWarning("CaloTPGTranscoderULUT") << "Encountered invalid HcalDetId " << HcalGenericDetId(*i);
continue;
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this continue meant to be in the if block started on line 59?

Choose a reason for hiding this comment

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

@gartung I think not, as I said above. Maybe @bsunanda (who seems to be the last contributor?) can comment?

@gartung gartung changed the title gcc 6.0 misleading-indentation warning flags potential bug CalibCalorimetry/CaloTPG : gcc 6.0 misleading-indentation warning flags potential bug; with formatting fix Jun 28, 2016
@gartung gartung changed the title CalibCalorimetry/CaloTPG : gcc 6.0 misleading-indentation warning flags potential bug; with formatting fix CalibCalorimetry/CaloTPG :formatting fix for gcc 6.0 misleading-indentation warning Jul 1, 2016
@davidlange6 davidlange6 merged commit 9f7722f into cms-sw:CMSSW_8_1_X Jul 21, 2016
@gartung gartung deleted the CalibCalorimetry-CaloTPG-fix-indent-not-guard-warn branch July 21, 2016 16:19
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