| Summary: | False positive "no return" warning in function with infinite loop | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Nathan Ridge <zeratul976> |
| Component: | cdt-codan | Assignee: | CDT Codan Inbox <cdt-codan-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, eclipse, frantas, kamre, martin.gerhardy, samh.public, yevshif |
| Version: | Next | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Nathan Ridge
This seems to be related: not infinite, but a do/while(0) loop (commonly used with macros) gives the same warning (Eclipse 3.8.2 / CDT 8.1.2):
int test1() {
do {
return 1;
} while (0);
}
Looks like this was fixed a couple of weeks ago in http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=db43e03878e285348d08ddab9ae034edf669da70. Thanks Alena! *** Bug 353951 has been marked as a duplicate of this bug. *** *** Bug 350481 has been marked as a duplicate of this bug. *** *** Bug 380749 has been marked as a duplicate of this bug. *** |