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

HGTD_GeoModel: Fix warnings seen when LTO is enabled.

    
Uninitialized pointer passed to SG::retrieve.
parent b11ba38d
No related branches found
No related tags found
4 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,!50059HGTD_GeoModel+HGTD_GeoModelXml+FastCaloSimHit+BCMPrimeGeoModelXml+ExpressionEvaluation: Fix warnings seen when LTO is enabled.
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// includes
......@@ -43,7 +43,7 @@ StatusCode HGTD_DetectorTool::create() {
ATH_CHECK(detStore()->retrieve(idHelper, "HGTD_ID"));
m_athenaComps.setIdHelper(idHelper);
GeoModelExperiment *theExpt;
GeoModelExperiment *theExpt = nullptr;
ATH_CHECK(detStore()->retrieve(theExpt, "ATLAS"));
// The * converts a ConstPVLink to a ref to a GeoVPhysVol, the & takes the address of the GeoVPhysVol
......
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