mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Merge pull request #495 from geoffw0/returnvalue
CPP: Fix 'Missing return statement'
This commit is contained in:
@@ -84,3 +84,13 @@ int f12(int x)
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
void f13()
|
||||
{
|
||||
f13_func(); // implicitly declared here
|
||||
}
|
||||
|
||||
void f13_func(int x)
|
||||
{
|
||||
if (x < 10) return; // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user