reduce: main(): replace "return false;" by "return EXIT_FAILURE;", clang 4 warned about this:

tools/reduce.cpp:771:17: warning: bool literal returned from 'main' [-Wmain]
                return false;
                ^      ~~~~~
tools/reduce.cpp:776:17: warning: bool literal returned from 'main' [-Wmain]
                return false;
                ^      ~~~~~
tools/reduce.cpp:782:17: warning: bool literal returned from 'main' [-Wmain]
                return false;
                ^      ~~~~~
This commit is contained in:
Matthias Krüger 2017-01-17 01:32:29 +01:00
parent 6c71d74563
commit 9e2650db96
1 changed files with 3 additions and 3 deletions

View File

@ -768,18 +768,18 @@ int main(int argc, char *argv[])
std::istringstream iss(14+argv[i]);
if (!(iss >> settings.maxConfigs)) {
std::cerr << "argument to '--max-configs=' is not a number." << std::endl;
return false;
return EXIT_FAILURE;
}
if (settings.maxConfigs < 1) {
std::cerr << "argument to '--max-configs=' must be greater than 0." << std::endl;
return false;
return EXIT_FAILURE;
}
maxconfigs = true;
} else if (std::strncmp(argv[i], "--library=", 10) == 0) {
if (!tryLoadLibrary(settings.library, argv[0], argv[i]+10))
return false;
return EXIT_FAILURE;
} else if (std::strcmp(argv[i], "--std=posix") == 0) {
settings.standards.posix = true;
} else if (std::strcmp(argv[i], "--std=c89") == 0) {