Preprocessor: Don't report that there are missing system includes unless --debug-warnings has been given.

This commit is contained in:
Daniel Marjamäki 2011-05-15 09:38:13 +02:00
parent 056476d28a
commit b6dcdd7b79
1 changed files with 2 additions and 5 deletions

View File

@ -1961,14 +1961,11 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath
path.erase(1 + path.find_last_of("\\/"));
paths.push_back(path);
}
else if (!fileOpened)
else if (!fileOpened && _settings && (headerType == UserHeader || _settings->debugwarnings))
{
missingIncludeFlag = true;
if (_errorLogger &&
_settings &&
_settings->checkConfiguration &&
(headerType == UserHeader || _settings->debugwarnings))
if (_errorLogger && _settings->checkConfiguration)
{
std::string f = filePath;