diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index bb2e97b5a..74c5bf7e2 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -68,7 +68,9 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c } if (parser.ExitAfterPrinting()) - std::exit(0); + std::exit(EXIT_SUCCESS); + } else { + std::exit(EXIT_FAILURE); } // Check that all include paths exist