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
|
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)
|
if (!_settings)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!_settings->debugwarnings)
|
if (!_settings->debugwarnings)
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
|
|
||||||
std::ostringstream str;
|
std::ostringstream str;
|
||||||
const Token *tok1 = tok;
|
const Token *tok1 = tok;
|
||||||
|
|
Loading…
Reference in New Issue