Preprocessor: Temporarily skip 'missing include' warnings for system headers in release mode. When the handling works better these messages should not be skipped. Ticket: #1937

This commit is contained in:
Daniel Marjamäki 2010-11-28 12:38:06 +01:00
parent 00da0adf25
commit 3068dbf22e
1 changed files with 6 additions and 0 deletions

View File

@ -1570,7 +1570,13 @@ void Preprocessor::handleIncludes(std::string &code,
}
else if (!fileOpened)
{
// TODO: Fix the handling of system includes and then
// remove the "headerType == UserHeader"
#ifdef NDEBUG
if (headerType == UserHeader && _errorLogger && _settings && _settings->isEnabled("missingInclude"))
#else
if (_errorLogger && _settings && _settings->isEnabled("missingInclude"))
#endif
{
// Determine line number of include
unsigned int linenr = 1;