Fixed #7271 (Suppress warning about non-existing path given to -I with --quiet.)
This commit is contained in:
parent
2a30e2bc01
commit
e038dd9663
|
@ -118,7 +118,8 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
|
||||||
++iter;
|
++iter;
|
||||||
else {
|
else {
|
||||||
// If the include path is not found, warn user and remove the non-existing path from the list.
|
// If the include path is not found, warn user and remove the non-existing path from the list.
|
||||||
std::cout << "cppcheck: warning: Couldn't find path given by -I '" << path << '\'' << std::endl;
|
if (settings.isEnabled("information"))
|
||||||
|
std::cerr << "(information) 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