From d5bf5b7ad22b1fd512ecc379c40fa301d959f7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 20 Aug 2011 11:23:59 +0200 Subject: [PATCH] Preprocessor: allow that 'missingInclude' messages are suppressed with '--suppress=missingInclude' --- lib/preprocessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index cb397f6cf..c1d38808c 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -2019,7 +2019,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath } else if (!fileOpened && _settings && (headerType == UserHeader || _settings->debugwarnings)) { - missingIncludeFlag = true; + if (!_settings->nomsg.isSuppressed("missingInclude", "", 0)) + missingIncludeFlag = true; if (_errorLogger && _settings->checkConfiguration) {