Fixed #7271 (Suppress warning about non-existing path given to -I with --quiet.)

This commit is contained in:
Daniel Marjamäki 2016-01-09 11:19:51 +01:00
parent 2a30e2bc01
commit e038dd9663
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
++iter;
else {
// 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);
}
}