Tokenizer: the 'failed to parse typedef' messages should not be shown unless --debug-warnings are given

This commit is contained in:
Daniel Marjamäki 2010-09-14 20:59:09 +02:00
parent af8a178b71
commit 38b35feaa8
1 changed files with 0 additions and 3 deletions

View File

@ -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;