From d97851b9dba3ecc3f7050ad6059c42284fa58759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 13 Nov 2018 21:08:45 +0100 Subject: [PATCH] change severity for 'unknown macro' to error for now. --- lib/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 33a24d35e..a5bf240b9 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -451,7 +451,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string locationList.push_back(loc); ErrorLogger::ErrorMessage errmsg(locationList, mTokenizer.list.getSourceFilePath(), - e.type == InternalError::UNKNOWN_MACRO ? Severity::information : Severity::error, + Severity::error, e.errorMessage, e.id, false);