Skip to content

Commit 13b50f4

Browse files
committed
Fix
1 parent f2333b8 commit 13b50f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎lib/symboldatabase.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3362,8 +3362,10 @@ static bool checkReturns(const Function* function, bool unknown, bool emptyEnabl
33623362
bool conclusive = false;
33633363
if (pred(defStart, defEnd, conclusive))
33643364
return true;
3365-
else if (conclusive)
3365+
if (conclusive)
33663366
return false;
3367+
if (!defStart)
3368+
return unknown;
33673369
if (Token::Match(defEnd->tokAt(-1), "*|&|&&"))
33683370
return false;
33693371
// void STDCALL foo()

0 commit comments

Comments
 (0)