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

Phase2L1CaloJetEmulator: fix maybe-uninitialized warning #44633

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

iarspider
Copy link
Contributor

PR description:

GCC emits the following maybe-uninitialized warnings:

  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: warning: 'eta_slice[1]' may be used uninitialized [-Wmaybe-uninitialized]
   387 |     float eta_slice[3];
      |           ^
In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:475:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:35: warning: 'eta_slice[0]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                   ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[0]' was declared here
  387 |     float eta_slice[3];
      |           ^
In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:430:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:50: warning: 'eta_slice[2]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                                  ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[2]' was declared here
  387 |     float eta_slice[3];
      |           ^
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: warning: 'eta_slice[1]' may be used uninitialized [-Wmaybe-uninitialized]
 In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:520:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:50: warning: 'eta_slice[2]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                                  ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[2]' was declared here
  387 |     float eta_slice[3];
      |           ^
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: warning: 'eta_slice[1]' may be used uninitialized [-Wmaybe-uninitialized]
 In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:430:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:35: warning: 'eta_slice[0]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                   ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[0]' was declared here
  387 |     float eta_slice[3];
      |           ^
In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:520:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:35: warning: 'eta_slice[0]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                   ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[0]' was declared here
  387 |     float eta_slice[3];
      |           ^
In function 'getJetValues',
    inlined from 'getRegion' at ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:450:23,
    inlined from 'produce' at src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc:475:33:
  ...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:421:50: warning: 'eta_slice[2]' may be used uninitialized [-Wmaybe-uninitialized]
   421 |     jet_tmp.energy = eta_slice[0] + eta_slice[1] + eta_slice[2];
      |                                                  ^
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h: In member function 'produce':
...src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloJetEmulator.h:387:11: note: 'eta_slice[2]' was declared here
  387 |     float eta_slice[3];
      |           ^

log

PR validation:

Bot tests

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_DBG_X

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44633/39822

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2024

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

It involves the following packages:

  • L1Trigger/L1CaloTrigger (upgrade, l1)

@epalencia, @srimanob, @aloeliger, @subirsarkar can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol this is something you requested to watch as well.
@antoniovilela, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19cb75/38630/summary.html
COMMIT: 11e7a49
CMSSW: CMSSW_14_1_DBG_X_2024-04-04-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44633/38630/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19cb75/38630/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19cb75/38630/git-merge-result

Comparison Summary

Summary:

  • You potentially added 3927610 lines to the logs
  • Reco comparison results: 45651 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3307717
  • DQMHistoTests: Total failures: 93053
  • DQMHistoTests: Total nulls: 82
  • DQMHistoTests: Total successes: 3214562
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 4.397 KiB( 47 files compared)
  • DQMHistoSizes: changed ( 13034.0 ): 3.433 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 141.042 ): 0.004 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 250202.181 ): 0.182 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 25202.0 ): 0.778 KiB SiStrip/MechanicalView
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: found differences in 11 / 46 workflows

@aloeliger
Copy link
Contributor

+l1

  • technical change

@srimanob
Copy link
Contributor

srimanob commented Apr 8, 2024

@cmsbuild please test

To make the clean test, as so many failures in various workflows.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19cb75/38681/summary.html
COMMIT: 11e7a49
CMSSW: CMSSW_14_1_X_2024-04-08-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44633/38681/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@srimanob
Copy link
Contributor

+Upgrade

@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. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+1

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.

5 participants