CheckOther::checkAccessOfMovedVariable: don't warn if --enable=warning is not given.
This commit is contained in:
parent
74fa69fe5e
commit
4cf85b72b6
|
@ -2699,7 +2699,7 @@ void CheckOther::unknownEvaluationOrder(const Token* tok)
|
||||||
|
|
||||||
void CheckOther::checkAccessOfMovedVariable()
|
void CheckOther::checkAccessOfMovedVariable()
|
||||||
{
|
{
|
||||||
if (!_tokenizer->isCPP() || _settings->standards.cpp < Standards::CPP11)
|
if (!_tokenizer->isCPP() || _settings->standards.cpp < Standards::CPP11 || !_settings->isEnabled("warning"))
|
||||||
return;
|
return;
|
||||||
const bool reportInconclusive = _settings->inconclusive;
|
const bool reportInconclusive = _settings->inconclusive;
|
||||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||||
|
|
Loading…
Reference in New Issue