Skip to content

Commit

Permalink
Merge pull request #25 from farzonl/master
Browse files Browse the repository at this point in the history
disable unreachable code  warning for msvc.
  • Loading branch information
FlorianRappl committed Mar 10, 2021
2 parents 9b35fdb + 3b5e2f2 commit 869cc71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmdparser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,11 @@ namespace cli {
void enable_help() {
set_callback("h", "help", std::function<bool(CallbackArgs&)>([this](CallbackArgs& args){
args.output << this->usage();
#pragma warning(push)
#pragma warning(disable: 4702)
exit(0);
return false;
#pragma warning(pop)
}), "", true);
}

Expand Down

0 comments on commit 869cc71

Please sign in to comment.