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
Default initialize PTrajectoryStateOnDet members #13928
Default initialize PTrajectoryStateOnDet members #13928
Conversation
GCC 6.0.0 (r234661) we might create PTrajectoryStateOnDet without initialized members. The patch adds the defaults which later can be modified by member initializer list in ctor. RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[10]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[11]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[12]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[13]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[14]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[1]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[2]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[4]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[5]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[6]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[7]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[8]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[9]' may be used uninitialized in this function [-Werror=maybe-uninitialized] RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::thePt' may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A new Pull Request was created by @davidlt for CMSSW_8_1_X. It involves the following packages: DataFormats/TrajectoryState @cmsbuild, @cvuosalo, @slava77, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
@cmsbuild please test |
The tests are being triggered in jenkins. |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
-1 @@@@ ----> OK EDM Class Version >> Checking EDM Class Transients in libDataFormatsBeamSpot.so In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSPCoreLogic.h:10:0, from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSectorProcessor.h:20, from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/src/CSCTFSectorProcessor.cc:1: /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/poison/L1Trigger/CSCTrackFinder/src/core_2010_01_22/vpp_generated.h:1:2: error: #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE. #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE. ^ In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSPCoreLogic.h:11:0, from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSectorProcessor.h:20, from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/src/CSCTFSectorProcessor.cc:1: you can see the results of the tests here: The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 Tested at: ebe1937 ---> test runtestTqafTopEventSelection had ERRORS you can see the results of the tests here: The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
ping^1 |
ping^2 Are there any objections for the default values? |
-1 Tested at: ebe1937 ---> test runtestTqafTopEventSelection had ERRORS you can see the results of the tests here: |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (but tests are reportedly failing). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
GCC 6.0.0 (r234661) we might create PTrajectoryStateOnDet without
initialized members. The patch adds the defaults which later can be
modified by member initializer list in ctor.
Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch