Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 9, 2009, 2:53 am
rate this thread
Re: how to check missing breaks in switch case blocks
Since falling through to the next case is legal in C
and C syntax does not provide any kind of explicit
indication your task is hopeless.
Other than break, common last lines of a case include
goto, continue and return - all perfectly valid.
Putting a break after any of these would be likely to
generate an unreachable statement warning.
My advice is to port your application to perl which is
known for its clean, maintainable syntax.
Here is a free rexexp for checking for using '=' when you
meant '==' in an if statement. Enjoy.
- » FAQ 4.28 How do I change the Nth occurrence of something?
- — Previous thread in » PERL Discussions