http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55976
Bug #: 55976 Summary: -Werror=return-type should error on returning a value from a void function Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lu_z...@gentoo.org Stupid testcase #include <stdio.h> void t () { return 1; } // does not error int b () { return; } // does int main() { t(); b(); return 0; }