CheckOther::checkAccessOfMovedVariable: don't warn if --enable=warning is not given.

This commit is contained in:
Matthias Krüger 2016-11-20 18:44:37 +01:00
parent 74fa69fe5e
commit 4cf85b72b6
1 changed files with 1 additions and 1 deletions

View File

@ -2699,7 +2699,7 @@ void CheckOther::unknownEvaluationOrder(const Token* tok)
void CheckOther::checkAccessOfMovedVariable()
{
if (!_tokenizer->isCPP() || _settings->standards.cpp < Standards::CPP11)
if (!_tokenizer->isCPP() || _settings->standards.cpp < Standards::CPP11 || !_settings->isEnabled("warning"))
return;
const bool reportInconclusive = _settings->inconclusive;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();