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

GCC 8 Compiler Warnings, Minor Reco Fixes #24227

Merged
merged 2 commits into from Aug 21, 2018

Conversation

wddgit
Copy link
Contributor

@wddgit wddgit commented Aug 7, 2018

Two fixes included here and neither should affect
behavior. One modifies the extent of an unnamed
namespace. It was maybe inconsistent before, but
not a real problem. The other initializes some
uninitialized variables. A real bug, but these
variables are not used anywhere (alternately we
could delete them).

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

A new Pull Request was created by @wddgit (W. David Dagenhart) for master.

It involves the following packages:

RecoBTag/Combined
RecoCTPPS/TotemRPLocal

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@imarches, @smoortga, @acaudron, @jan-kaspar, @HeinerTholen, @JyothsnaKomaragiri, @mverzett, @ferencek, @pvmulder, @forthommel this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@wddgit
Copy link
Contributor Author

wddgit commented Aug 7, 2018

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/29713/console Started: 2018/08/07 21:07

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2018

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2018

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-24227/29713/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 31
  • DQMHistoTests: Total histograms compared: 2891565
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2891373
  • DQMHistoTests: Total skipped: 190
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 30 files compared)
  • Checked 129 log files, 14 edm output root files, 31 DQM output files

@@ -84,11 +84,13 @@ class FastLineRecognition
double Saw, Sbw, Sw, S1;
double weight;
double min_a, max_a, min_b, max_b;
Copy link
Contributor

Choose a reason for hiding this comment

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

@jan-kaspar
please take a look.
Can we instead remove min_a, max_a, min_b, max_b ?

@@ -84,11 +84,13 @@ class FastLineRecognition
double Saw, Sbw, Sw, S1;
double weight;
double min_a, max_a, min_b, max_b;
bool firstCallToAdd = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

If you remove min_a, max_a, min_b, max_b, then you can also get rid of firstCallToAdd

Copy link
Contributor

Choose a reason for hiding this comment

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

By the way: is there any reason for having all these class members and methods "protected" instead of "private"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. If we delete min_a, max_a, min_b, max_b, then there is no reason for firstCallToAdd to exist. I would be happy to delete them all from the PR. Do you want me to do that?

In the repository nothing inherits from FastLineRecognition. Unless there is something outside the repository that I do not understand, there is no reason for these to be protected. Do you want me to change protected to private also?

@perrotta
Copy link
Contributor

perrotta commented Aug 15, 2018 via email

Two fixes included here and neither should affect
behavior. One modifies the extent of an unnamed
namespace. It was maybe inconsistent before, but
not a real problem. The other deletes some
uninitialized variables which were also not used
for anything.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #24227 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@wddgit
Copy link
Contributor Author

wddgit commented Aug 15, 2018

please test

@perrotta I made the changes you requested. Both improvements. Thanks.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 15, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/29861/console Started: 2018/08/15 20:31

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-24227/29861/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 31
  • DQMHistoTests: Total histograms compared: 2891469
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2891277
  • DQMHistoTests: Total skipped: 190
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 30 files compared)
  • Checked 129 log files, 14 edm output root files, 31 DQM output files

@perrotta
Copy link
Contributor

+1

  • Technical
  • Jenkins test pass

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 8005dab into cms-sw:master Aug 21, 2018
@wddgit wddgit deleted the gcc8CompilerWarnings10 branch August 31, 2018 18:08
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