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()), {"\"\""}};