Skip to content

Commit 42d43bc

Browse files
danmarclaude
andcommitted
#15305: fix unused variable 'db' in findFunction67
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f5a6c23 commit 42d43bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/testsymboldatabase.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9251,6 +9251,7 @@ class TestSymbolDatabase : public TestFixture {
92519251
"int f(int x) {\n"
92529252
" return (enum E)x;\n"
92539253
"}\n");
9254+
ASSERT(db);
92549255
const Token* tok = Token::findsimplematch(tokenizer.tokens(), "E {");
92559256
ASSERT(tok && !tok->function());
92569257
tok = Token::findsimplematch(tokenizer.tokens(), "E )");
@@ -9267,6 +9268,7 @@ class TestSymbolDatabase : public TestFixture {
92679268
"int g(void) {\n"
92689269
" return (struct S){1, 2}.a;\n"
92699270
"}\n");
9271+
ASSERT(db);
92709272
const Token* tok = Token::findsimplematch(tokenizer.tokens(), "S {");
92719273
ASSERT(tok && !tok->function());
92729274
tok = Token::findsimplematch(tokenizer.tokens(), "S *");
@@ -9287,6 +9289,7 @@ class TestSymbolDatabase : public TestFixture {
92879289
"int g(void) {\n"
92889290
" return (union U){3}.a;\n"
92899291
"}\n");
9292+
ASSERT(db);
92909293
const Token* tok = Token::findsimplematch(tokenizer.tokens(), "U {");
92919294
ASSERT(tok && !tok->function());
92929295
tok = Token::findsimplematch(tokenizer.tokens(), "U *");

0 commit comments

Comments
 (0)