Tokenizer: the 'failed to parse typedef' messages should not be shown unless --debug-warnings are given
This commit is contained in:
parent
af8a178b71
commit
38b35feaa8
|
@ -637,14 +637,11 @@ bool Tokenizer::duplicateTypedef(Token **tokPtr, const Token *name)
|
|||
|
||||
void Tokenizer::unsupportedTypedef(const Token *tok) const
|
||||
{
|
||||
// ###### The ifdef will be removed soon - the message will only be shown if --debug-warnings are given. #######
|
||||
#ifdef NDEBUG
|
||||
if (!_settings)
|
||||
return;
|
||||
|
||||
if (!_settings->debugwarnings)
|
||||
return;
|
||||
#endif
|
||||
|
||||
std::ostringstream str;
|
||||
const Token *tok1 = tok;
|
||||
|
|
Loading…
Reference in New Issue