Skip to content

Commit aebcefb

Browse files
committed
fix some warnings
1 parent 84384fa commit aebcefb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/CLI/impl/App_inl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ CLI11_INLINE Option *App::add_option(std::string option_name,
170170
top_level_parent = top_level_parent->parent_;
171171
}
172172

173-
if(std::find_if(std::begin(options_), std::end(options_), [&myopt, top_level_parent](const Option_p &v) {
173+
if(std::find_if(std::begin(options_), std::end(options_), [&myopt](const Option_p &v) {
174174
return *v == myopt;
175175
}) == std::end(options_)) {
176176
if(myopt.lnames_.empty() && myopt.snames_.empty()) {

tests/FuzzFailTest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,11 @@ TEST_CASE("app_roundtrip_custom") {
348348
int index = GENERATE(range(1, 16));
349349

350350
auto parseData = loadFailureFile("round_trip_custom", index);
351-
INFO("Failure in test case " << index << " file length=" << parseData.size())
351+
352352
std::size_t pstring_start{0};
353353
pstring_start = fuzzdata.add_custom_options(app.get(), parseData);
354-
354+
INFO("Failure in test case " << index << " file length=" << parseData.size()<<" pstring start at " << pstring_start)
355355
if(pstring_start > 0) {
356-
INFO("pstring start at " << pstring_start);
357356
app->parse(parseData.substr(pstring_start));
358357
CHECK_NOTHROW(app->help("", CLI::AppFormatMode::All));
359358
} else {

0 commit comments

Comments
 (0)