Skip to content

Uninitialized member calib in p2eg::Cluster::calib #1142

@aloeliger

Description

@aloeliger

What

Taken from cms-sw#42094

The CMSSW_13_2_NONLTO_X_2023-06-24-1100 IB reports a compilation warning

In file included from /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloEGammaEmulator.cc:54:
In member function 'p2eg::Cluster& p2eg::Cluster::operator=(const p2eg::Cluster&)',
    inlined from 'void p2eg::stitchClusterOverRegionBoundary(std::vector<p2eg::Cluster>&, int, int, int)' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h:1563:48:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloEGammaUtils.h:857:19: warning: '<anonymous>.p2eg::Cluster::calib' may be used uninitialized [-Wmaybe-uninitialized]
   857 |       calib = rhs.calib;
      |               ~~~~^~~~~
In file included from /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloEGammaEmulator.cc:55:
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h: In function 'void p2eg::stitchClusterOverRegionBoundary(std::vector<p2eg::Cluster>&, int, int, int)':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/3a90595df44bc94278b0469c0f46ff54/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_NONLTO_X_2023-06-24-1100/src/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h:1563:48: note: '<anonymous>' declared here
 1563 |                                     c1.region());
      |                                                ^

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/el8_amd64_gcc11/CMSSW_13_2_NONLTO_X_2023-06-24-1100/L1Trigger/L1CaloTrigger

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compiler ErrorIssues causing problems in compilationPhase-2Pertains to phase-2 development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions