NickThePowerful / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

-Wreturn-type not reporting missing return statements #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a method with a non-void return type.
2. Add code but no return statement.
3. Compile with -Wreturn-type flag.
4. Observe no warning.

What is the expected output? What do you see instead?
The expected output is a warning along the lines of "Control reaches end of
non void function". Instead, nothing.

What version of the product are you using? On what operating system?
revision 171, Ubuntu 7.04

Please provide any additional information below.

Original issue reported on code.google.com by nathan%n...@gtempaccount.com on 4 Oct 2007 at 3:56