failure to warn about an obvious error

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Tue Nov 30 23:39:00 GMT 1999


> What do you think about the idea of warning if a function is defined
> as returning a value but there is no return statement anywhere in it
> (and the function is not main)?  That would catch lots of common cases.

That sounds like a good idea: The warning will be easily
understandable, and people don't need to argue when it should be
generated. I'll see what I can do.

Regards,
Martin



More information about the Gcc-bugs mailing list