mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Merge pull request #359 from ericonr/string-warning
parse_args(): work around GCC 12 warning bug.
This commit is contained in:
commit
eab1d75e49
@ -1831,9 +1831,9 @@ public:
|
|||||||
for (Argument *arg : group.m_elements) {
|
for (Argument *arg : group.m_elements) {
|
||||||
if (i + 1 == size) {
|
if (i + 1 == size) {
|
||||||
// last
|
// last
|
||||||
argument_names += "'" + arg->get_usage_full() + "' ";
|
argument_names += std::string("'") + arg->get_usage_full() + std::string("' ");
|
||||||
} else {
|
} else {
|
||||||
argument_names += "'" + arg->get_usage_full() + "' or ";
|
argument_names += std::string("'") + arg->get_usage_full() + std::string("' or ");
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user