Community
Participate
Working Groups
File test.c ----------- typedef void VOID; VOID test(VOID) { int i; i = 1; } Warning "No return, in function returning non-void" for function test Defining VOID with "#define VOID void" is working.
Created attachment 171598 [details] patch
fixed in 7.0.1 and head
marking it actually fixed
*** cdt cvs genie on behalf of elaskavaia *** Bug 316309: unwind typedef for void [*] ReturnChecker.java 1.13 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.12&r2=1.13
*** cdt cvs genie on behalf of elaskavaia *** Bug 316309: unwind typedef for void [*] ReturnChecker.java 1.12.2.1 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.12&r2=1.12.2.1
*** Bug 318789 has been marked as a duplicate of this bug. ***
Hi. The bug is still there in C++.
Created attachment 173375 [details] patch to make it work with cpp
re-open for c++
fixed on trunk and 7.0 branch. Thanks for the patch.
*** cdt cvs genie on behalf of elaskavaia *** Bug 316309: fixing void return typedef in C++ (patch from Marc-Andre Laperle) [*] ReturnChecker.java 1.14 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.13&r2=1.14 [*] ReturnChecker.java 1.12.2.2 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.12.2.1&r2=1.12.2.2