From 53c19b544f577366d80cba6a1adcb07586bbef3f Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 26 Jan 2022 16:35:22 +0100 Subject: [PATCH] TBRec: Fix warnings seen when LTO is enabled. Uninitialized pointer passed to SG::retrieve. --- TestBeam/TBRec/src/TBECLArRawChannelBuilder.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TestBeam/TBRec/src/TBECLArRawChannelBuilder.cxx b/TestBeam/TBRec/src/TBECLArRawChannelBuilder.cxx index e31ed4163a87..ac49b6312652 100644 --- a/TestBeam/TBRec/src/TBECLArRawChannelBuilder.cxx +++ b/TestBeam/TBRec/src/TBECLArRawChannelBuilder.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ #include "TBECLArRawChannelBuilder.h" @@ -246,8 +246,8 @@ StatusCode TBECLArRawChannelBuilder::execute() //retrieve TDC if (m_useTDC) { //All this timing business is only necessary if the readout and the beam are not in phase (Testbeam) - const TBPhase* theTBPhase; - const ILArGlobalTimeOffset* larGlobalTimeOffset; + const TBPhase* theTBPhase = nullptr; + const ILArGlobalTimeOffset* larGlobalTimeOffset = nullptr; ATH_CHECK( evtStore()->retrieve(theTBPhase,"TBPhase") ); //Get Phase in nanoseconds PhaseTime = theTBPhase->getPhase(); -- GitLab