From 82b4f9bda2cb510d09b0bfba08c8f51de9006ae1 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Sun, 23 Aug 2026 10:15:15 +0200 Subject: [PATCH] DPL Analysis: fix false positive --- Framework/Core/include/Framework/AnalysisHelpers.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Framework/Core/include/Framework/AnalysisHelpers.h b/Framework/Core/include/Framework/AnalysisHelpers.h index e4d9682b35302..99d6f117e5dbf 100644 --- a/Framework/Core/include/Framework/AnalysisHelpers.h +++ b/Framework/Core/include/Framework/AnalysisHelpers.h @@ -25,6 +25,7 @@ #include "Framework/TableBuilder.h" #include "Framework/Traits.h" +#include #include namespace o2::framework { @@ -192,11 +193,13 @@ ConcreteDataMatcher replaceOrigin(ConcreteDataMatcher& matcher, const header::Da namespace o2::soa { +// fmt::format, not std::string + const char*: GCC 14 turns the latter into a +// spurious -Werror=array-bounds= on the temporary's SSO buffer. template constexpr auto tableRef2ConfigParamSpec() { return o2::framework::ConfigParamSpec{ - std::string{"input:"} + o2::aod::label(), + fmt::format("input:{}", o2::aod::label()), framework::VariantType::String, aod::sourceSpec(), {"\"\""}}; @@ -206,7 +209,7 @@ template constexpr auto tableRef2Schema() { return o2::framework::ConfigParamSpec{ - std::string{"input-schema:"} + o2::aod::label(), + fmt::format("input-schema:{}", o2::aod::label()), framework::VariantType::String, framework::serializeSchema(o2::aod::MetadataTrait>::metadata::getSchema()), {"\"\""}};