Evaluation order: Only use this checker on non-C++11 code

This commit is contained in:
Daniel Marjamäki 2015-12-25 18:49:34 +01:00
parent 55779a5772
commit 90148ce2a1
1 changed files with 1 additions and 1 deletions

View File

@ -2486,7 +2486,7 @@ void CheckOther::unusedLabelError(const Token* tok)
void CheckOther::checkEvaluationOrder()
{
// This checker is not written according to C++11 sequencing rules
if (_settings->standards.cpp == Standards::CPP11)
if (!_tokenizer->isCPP() || _settings->standards.cpp != Standards::CPP11)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();