Skip to content

Commit bf435e7

Browse files
authored
DPL Analysis: fix false positive (#15710)
1 parent 9e0fda6 commit bf435e7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Framework/Core/include/Framework/AnalysisHelpers.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "Framework/TableBuilder.h"
2626
#include "Framework/Traits.h"
2727

28+
#include <fmt/format.h>
2829
#include <string>
2930
namespace o2::framework
3031
{
@@ -192,11 +193,13 @@ ConcreteDataMatcher replaceOrigin(ConcreteDataMatcher& matcher, const header::Da
192193

193194
namespace o2::soa
194195
{
196+
// fmt::format, not std::string + const char*: GCC 14 turns the latter into a
197+
// spurious -Werror=array-bounds= on the temporary's SSO buffer.
195198
template <TableRef R>
196199
constexpr auto tableRef2ConfigParamSpec()
197200
{
198201
return o2::framework::ConfigParamSpec{
199-
std::string{"input:"} + o2::aod::label<R>(),
202+
fmt::format("input:{}", o2::aod::label<R>()),
200203
framework::VariantType::String,
201204
aod::sourceSpec<R>(),
202205
{"\"\""}};
@@ -206,7 +209,7 @@ template <TableRef R>
206209
constexpr auto tableRef2Schema()
207210
{
208211
return o2::framework::ConfigParamSpec{
209-
std::string{"input-schema:"} + o2::aod::label<R>(),
212+
fmt::format("input-schema:{}", o2::aod::label<R>()),
210213
framework::VariantType::String,
211214
framework::serializeSchema(o2::aod::MetadataTrait<o2::aod::Hash<R.desc_hash>>::metadata::getSchema()),
212215
{"\"\""}};

0 commit comments

Comments
 (0)