Commit 4b07ef52d5d8ce49abda6b13a1b3015c1a512064
1 parent
e328364a
Fixes for Windows warnings
Showing
2 changed files
with
4 additions
and
3 deletions
CMakeLists.txt
include/CLI/App.hpp
| ... | ... | @@ -519,9 +519,9 @@ public: |
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | /// Check with name instead of pointer |
| 522 | - bool got_subcommand(std::string name) const { | |
| 522 | + bool got_subcommand(std::string name_) const { | |
| 523 | 523 | for(const auto subcomptr : selected_subcommands) |
| 524 | - if(subcomptr->check_name(name)) | |
| 524 | + if(subcomptr->check_name(name_)) | |
| 525 | 525 | return true; |
| 526 | 526 | return false; |
| 527 | 527 | } |
| ... | ... | @@ -630,7 +630,7 @@ protected: |
| 630 | 630 | // Collect positionals |
| 631 | 631 | |
| 632 | 632 | // Loop over all positionals |
| 633 | - for(int i=0; i<missing.size(); i++) { | |
| 633 | + for(size_t i=0; i<missing.size(); i++) { | |
| 634 | 634 | |
| 635 | 635 | // Skip non-positionals (speedup) |
| 636 | 636 | if(missing.at(i).first != detail::Classifer::NONE) | ... | ... |