From 75e6a3dea829e264ebeca6a26f46131b086ab273 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Thu, 8 May 2025 18:19:45 +0200 Subject: [PATCH] Silence Wdangling-reference in RecoLocalCalo/EcalRecProducers alpaka plugin --- .../alpaka/EcalUncalibRecHitPhase2WeightsAlgoPortable.dev.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RecoLocalCalo/EcalRecProducers/plugins/alpaka/EcalUncalibRecHitPhase2WeightsAlgoPortable.dev.cc b/RecoLocalCalo/EcalRecProducers/plugins/alpaka/EcalUncalibRecHitPhase2WeightsAlgoPortable.dev.cc index 55a9669fbaa67..eed4491c4942d 100644 --- a/RecoLocalCalo/EcalRecProducers/plugins/alpaka/EcalUncalibRecHitPhase2WeightsAlgoPortable.dev.cc +++ b/RecoLocalCalo/EcalRecProducers/plugins/alpaka/EcalUncalibRecHitPhase2WeightsAlgoPortable.dev.cc @@ -34,7 +34,11 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::ecal::weights { //divide the grid into uniform elements for (auto tx : uniform_elements(acc, nchannels)) { bool g1 = false; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Wdangling-reference" const auto& digi = digisDev[tx].data(); +#pragma GCC diagnostic pop auto recHit = uncalibratedRecHitsDev[tx]; recHit.amplitude() = 0; recHit.jitter() = 0;