@@ -115,10 +115,8 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
115115 if (FileLister::isDirectory (path))
116116 ++iter;
117117 else {
118- // If the include path is not found, warn user (unless --quiet
119- // was used) and remove the non-existing path from the list.
120- if (!settings._errorsOnly )
121- std::cout << " cppcheck: warning: Couldn't find path given by -I '" << path << ' \' ' << std::endl;
118+ // If the include path is not found, warn user and remove the non-existing path from the list.
119+ std::cout << " cppcheck: warning: Couldn't find path given by -I '" << path << ' \' ' << std::endl;
122120 iter = settings._includePaths .erase (iter);
123121 }
124122 }
@@ -790,7 +788,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
790788 || !_settings->library .processMarkupAfterCode (i->first )) {
791789 returnValue += cppcheck.check (i->first );
792790 processedsize += i->second ;
793- if (!settings._errorsOnly )
791+ if (!settings.quiet )
794792 reportStatus (c + 1 , _files.size (), processedsize, totalfilesize);
795793 c++;
796794 }
@@ -802,7 +800,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
802800 if (_settings->library .markupFile (i->first ) && _settings->library .processMarkupAfterCode (i->first )) {
803801 returnValue += cppcheck.check (i->first );
804802 processedsize += i->second ;
805- if (!settings._errorsOnly )
803+ if (!settings.quiet )
806804 reportStatus (c + 1 , _files.size (), processedsize, totalfilesize);
807805 c++;
808806 }
0 commit comments