Skip to content
Snippets Groups Projects
Commit 1cb14618 authored by scott snyder's avatar scott snyder
Browse files

CaloRec: Fix warnings seen when LTO is enabled.

Uninitialized pointer passed to SG::retrieve.
parent e7823cda
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!49956CaloRec, CaloTriggerTool: Fix warnings seen when LTO is enabled.
/* /*
* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration. * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration.
*/ */
/** /**
* @file CaloRec/src/CaloBCIDCoeffsCondAlg.cxx * @file CaloRec/src/CaloBCIDCoeffsCondAlg.cxx
...@@ -34,12 +34,12 @@ StatusCode CaloBCIDCoeffsCondAlg::initialize() ...@@ -34,12 +34,12 @@ StatusCode CaloBCIDCoeffsCondAlg::initialize()
if ( m_isSC ) { if ( m_isSC ) {
const LArOnline_SuperCellID* ll; const LArOnline_SuperCellID* ll = nullptr;
ATH_CHECK(detStore()->retrieve(ll,"LArOnline_SuperCellID")); ATH_CHECK(detStore()->retrieve(ll,"LArOnline_SuperCellID"));
m_laronline_id = (const LArOnlineID_Base*)ll; m_laronline_id = (const LArOnlineID_Base*)ll;
} }
else { else {
const LArOnlineID* ll; const LArOnlineID* ll = nullptr;
ATH_CHECK(detStore()->retrieve(ll,"LArOnlineID")); ATH_CHECK(detStore()->retrieve(ll,"LArOnlineID"));
m_laronline_id = (const LArOnlineID_Base*)ll; m_laronline_id = (const LArOnlineID_Base*)ll;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment