From a30a64d2804e604b5848df9f14cb41a5bb022843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 Dec 2009 11:44:53 +0100 Subject: [PATCH] suppress 'internal error' message about failed template instantiation in release mode --- lib/tokenize.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }