Community
Participate
Working Groups
Build Identifier: 20110505-1223 The following code triggers a warning "No return, in function returning non-void": int test(int ival) { int ires = -1; if (ival < 0) { printf("invalid argument."); goto SKIPOINT; } ires = 0; SKIPOINT: return ival; } Reproducible: Always
Duplicate of #346559
similar and maybe related to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=348386 https://bugs.eclipse.org/bugs/show_bug.cgi?id=350168 https://bugs.eclipse.org/bugs/show_bug.cgi?id=350481 https://bugs.eclipse.org/bugs/show_bug.cgi?id=348387
(In reply to comment #1) > Duplicate of #346559 This bug is still present under e.g. Windows XP SP3, despite the reported fix in #346559 (Linux), i.e., the fix seems not to have propagated yet: Indigo Build id: 20110615-0604, downloaded and installed 26 Aug. 2011 (exclipse-cpp-indogo-incubation-win32.zip) CDT 8.0.0.201106081058 No relevant update was found when looking 5 minutes before this post using the Update option in the Help menu in Eclipse. Jochen
I don't see this warning on either Windows or Linux.
Yeah, and if I revert commit from bug 346559 it reappears. *** This bug has been marked as a duplicate of bug 346559 ***