Suppress warning about non-existing path given to -I with --quiet.
This commit is contained in:
parent
2f30f9aa13
commit
1f53018b8e
|
@ -80,8 +80,9 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
|
||||||
if (FileLister::isDirectory(path))
|
if (FileLister::isDirectory(path))
|
||||||
++iter;
|
++iter;
|
||||||
else {
|
else {
|
||||||
// If the include path is not found, warn user and remove the
|
// If the include path is not found, warn user (unless --quiet
|
||||||
// non-existing path from the list.
|
// was used) and remove the non-existing path from the list.
|
||||||
|
if (!settings._errorsOnly)
|
||||||
std::cout << "cppcheck: warning: Couldn't find path given by -I '" << path << '\'' << std::endl;
|
std::cout << "cppcheck: warning: Couldn't find path given by -I '" << path << '\'' << std::endl;
|
||||||
iter = settings._includePaths.erase(iter);
|
iter = settings._includePaths.erase(iter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue