Fixed #3292 (Error in --suppressions-list silently ignores all subsequent command line options)

This commit is contained in:
Zhiyuan Zhang 2011-11-05 18:15:03 +01:00 committed by Daniel Marjamäki
parent e989af3fd5
commit 4c3283738b
1 changed files with 3 additions and 1 deletions

View File

@ -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