only show information message when information messages are enabled

This commit is contained in:
Daniel Marjamäki 2018-05-08 09:47:14 +02:00
parent 90bc8b7404
commit 315dc2ad8a
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
}
}
if (!hasValidConfig && configurations.size() > 1) {
if (!hasValidConfig && configurations.size() > 1 && _settings->isEnabled(Settings::INFORMATION)) {
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
ErrorLogger::ErrorMessage::FileLocation loc;
loc.setfile(Path::toNativeSeparators(filename));