Resolve C4800

This commit is contained in:
Dmitry-Me 2017-10-14 22:50:56 +03:00
parent 2c040096ca
commit cad30446e4
1 changed files with 2 additions and 2 deletions

View File

@ -2514,9 +2514,9 @@ private:
void symboldatabase42() { // only put variables in variable list
GET_SYMBOL_DB("void f() { extern int x(); }\n");
ASSERT(db);
ASSERT(db != nullptr);
const Scope * const fscope = db ? db->findScopeByName("f") : nullptr;
ASSERT(fscope);
ASSERT(fscope != nullptr);
ASSERT_EQUALS(0U, fscope ? fscope->varlist.size() : ~0U); // "x" is not a variable
}