Community
Participate
Working Groups
void test() { class A { public: int m() { return 0; } }; } return 0; statement is flagged with: Return vas value, in function returning void.
confused with function inside another one :O
*** cdt cvs genie on behalf of elaskavaia *** Bug 315525: fix to suppress errors in inner functions [*] ReturnChecker.java 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java?root=Tools_Project&r1=1.9&r2=1.10
(In reply to comment #2) With this fix would void test() { class A { public: void m() { return 0; } }; } still produce an error?
Nope. This is false negative now. I will fix it after 7.0
was fixed in 7.0