Skip to content

Commit

Permalink
Merge pull request #359 from ericonr/string-warning
Browse files Browse the repository at this point in the history
parse_args(): work around GCC 12 warning bug.
  • Loading branch information
p-ranav authored May 20, 2024
2 parents f0759fd + df43e47 commit eab1d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,9 +1831,9 @@ class ArgumentParser {
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;
}
Expand Down

0 comments on commit eab1d75

Please sign in to comment.