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

gcc7 compilation warning(s) fix(es) in CommonTools/Utils #19898

Merged
merged 1 commit into from Jul 27, 2017

Conversation

mrodozov
Copy link
Contributor

Fix for compilation warning(s) when compiling with gcc7 and more flags listed here:
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc700/CMSSW_9_3_X_2017-07-24-2300/CommonTools/Utils

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mrodozov for master.

It involves the following packages:

CommonTools/Utils

@perrotta, @cmsbuild, @slava77, @monttj, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 25, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21740/console Started: 2017/07/25 16:46

@slava77
Copy link
Contributor

slava77 commented Jul 25, 2017

@mrodozov
please edit the PR title to be grammatically correct instead of the current stream of characters

@mrodozov
Copy link
Contributor Author

@slava77 yes sure I've noticed I'm using the branch name as commit message and I'll change the titles with more appropriate

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@mrodozov mrodozov changed the title gcc7-comp-warnings-fix-CmnTls-Utils gcc7 compilation warning(s) fix(es) in CommonTools/Utils Jul 25, 2017
@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • You potentially added 5 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2363781
  • DQMHistoTests: Total failures: 15040
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2348575
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

@@ -23,8 +24,9 @@ namespace reco {
template<typename Object>
struct ValueOnObject {
virtual double eval(Object const&) const =0;
virtual ~ValueOnObject(){};
Copy link
Contributor

Choose a reason for hiding this comment

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

in this file I also see CutOnObject and SelectIndecesInCollection with virtual methods and no virtual destructor defined.
Why?
Are these not used anywhere yet to trigger the warning?

It looks like these other types should have a destructor defined as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

glimps shows that these classes are not use (at least in cmssw).

>cmsglimpse CutOnObject
src/CommonTools/Utils/interface/ExpressionEvaluatorTemplates.h:   struct CutOnObject {
>cmsglimpse SelectIndecesInCollection
src/CommonTools/Utils/interface/ExpressionEvaluatorTemplates.h:   struct SelectIndecesInCollection {

@mrodozov , I would suggest to just add the missing destructor.

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 26, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21780/console Started: 2017/07/26 12:44

@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-19898/21780/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2363781
  • DQMHistoTests: Total failures: 14614
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2349001
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

@slava77
Copy link
Contributor

slava77 commented Jul 26, 2017

+1

for #19898 d3c563d

  • technical; added empty body virtual destructors to all struct/classes with a virtual methods
  • jenkins tests pass

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 9a93ab7 into cms-sw:master Jul 27, 2017
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

6 participants