Merge pull request #359 from ericonr/string-warning

parse_args(): work around GCC 12 warning bug.
This commit is contained in:
Pranav 2024-05-20 14:51:24 -04:00 committed by GitHub
commit eab1d75e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1831,9 +1831,9 @@ public:
for (Argument *arg : group.m_elements) {
if (i + 1 == size) {
// last
argument_names += "'" + arg->get_usage_full() + "' ";
argument_names += std::string("'") + arg->get_usage_full() + std::string("' ");
} else {
argument_names += "'" + arg->get_usage_full() + "' or ";
argument_names += std::string("'") + arg->get_usage_full() + std::string("' or ");
}
i += 1;
}