Skip to content

Commit 5e792ae

Browse files
authored
Merge pull request #270 from eseiler/fix/gcc15
[FIX] gcc15: Workaround bogus warning
2 parents c4fa513 + a9f6d0f commit 5e792ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/sharg/detail/format_tdl.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ class format_tdl : format_base
232232
parameters.push_back(tdl::Node{
233233
.name = config.long_id,
234234
.description = description,
235-
.tags = std::move(tags),
236235
.value = to_tdl(value),
237236
});
237+
// gcc 15 with hardened flags (fedora-flags) doesn't like having the move in the tdl::Node ctor.
238+
parameters.back().tags = std::move(tags);
238239
info.cliMapping.emplace_back("--" + config.long_id, config.long_id);
239240
},
240241
config);

0 commit comments

Comments
 (0)