From e038dd966313a68b7409891297985673a2e7537e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 9 Jan 2016 11:19:51 +0100 Subject: [PATCH] Fixed #7271 (Suppress warning about non-existing path given to -I with --quiet.) --- cli/cppcheckexecutor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 48a32ba61..6737f1b1e 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -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); } }