From f1539ac6fd1de090c1b274fc2deb7e4580bd1bef Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Tue, 21 Nov 2017 17:08:21 -0500 Subject: [PATCH] Removing some appveyor warnings --- .appveyor.yml | 4 ++-- include/CLI/App.hpp | 6 +++--- include/CLI/Option.hpp | 9 +++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 4749acc92..8a78fd872 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,11 +9,11 @@ install: build_script: - mkdir build - cd build - - cmake .. -DCLI_SINGLE_FILE_TESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_GENERATOR="Visual Studio 14 2015" + - cmake .. -DCLI_SINGLE_FILE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_GENERATOR="Visual Studio 14 2015" - cmake --build . test_script: - - ctest --output-on-failure -C RelWithDebInfo + - ctest --output-on-failure -C Debug notifications: - provider: Webhook diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 5e68f33f2..209b5a4cd 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -910,9 +910,9 @@ class App { subcmd_groups_seen.insert(group_key); out << std::endl << com->get_group() << ":" << std::endl; - for(const App_p &com : subcommands_) - if(detail::to_lower(com->get_group()) == group_key) - detail::format_help(out, com->get_name(), com->description_, wid); + for(const App_p &new_com : subcommands_) + if(detail::to_lower(new_com->get_group()) == group_key) + detail::format_help(out, new_com->get_name(), new_com->description_, wid); } } diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 979920094..bf0161d9c 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -408,17 +408,18 @@ class Option : public OptionBase