Tokenizer: Only show 'failed to instantiate template' debug messages if the --debug-warnings has been given
This commit is contained in:
parent
27b7638901
commit
21ec772e31
|
@ -2652,7 +2652,8 @@ void Tokenizer::simplifyTemplates()
|
|||
|
||||
if (type2.empty() || type.size() != types2.size())
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if (_settings && _settings->debugwarnings)
|
||||
{
|
||||
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
||||
ErrorLogger::ErrorMessage::FileLocation loc;
|
||||
loc.line = tok2->linenr();
|
||||
|
@ -2662,10 +2663,10 @@ void Tokenizer::simplifyTemplates()
|
|||
const ErrorLogger::ErrorMessage errmsg(locationList,
|
||||
Severity::debug,
|
||||
"Failed to instantiate template. The checking continues anyway.",
|
||||
"templateInstantiate");
|
||||
"debug");
|
||||
|
||||
_errorLogger->reportErr(errmsg);
|
||||
#endif
|
||||
}
|
||||
if (type2.empty())
|
||||
continue;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue