On Jan 16, 2009, at 12:02 PM, Chris Lattner wrote:
> Does GCC produce a warning for cases like:
>
> int foo() {
> switch (someenum) {
> case <all possible enums>:
> return 0;
> }
> // no return
> }
>
> About falling off the end of the function?
Yep, it will. However, if you forget to put one in the switch it'll
warn then (if you don't have a default) as well.
-eric
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits