Community
Participate
Working Groups
For the following code: bool f() { try { return true; } catch (...) { return false; } } Codan produces the warning: "Warning: no return in function returning non-void" However, quite obviously all code paths lead to a value being returned. gcc with -Wall produces no warning for the same code.
Created attachment 223553 [details] patch that fixes the issue, including tests Attached is a patch that fixes the issue, including tests.
Thank you for the patch! Unfortunately, there was already a similar bug reported also with a patch. I will look at both patches. *** This bug has been marked as a duplicate of bug 348387 ***