Fix the C4800 warnings.

This commit is contained in:
XhmikosR 2014-01-08 13:26:48 +02:00
parent 253c4fef49
commit 96b62c6ccb
1 changed files with 2 additions and 2 deletions

View File

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