diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index d812d66f8..4e3e1c99c 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -986,6 +986,7 @@ void Tokenizer::simplifyTemplates() if (type.size() != types2.size()) { +#ifndef NDEBUG std::list locationList; ErrorLogger::ErrorMessage::FileLocation loc; loc.line = tok2->linenr(); @@ -998,6 +999,8 @@ void Tokenizer::simplifyTemplates() "internalError"); _errorLogger->reportErr(errmsg); +#endif + break; }