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:
parent
00da0adf25
commit
3068dbf22e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue