Unreachable code
#2

The Unreachable code warning is usually a result of bad indention. It means you have 'finished' coding in a callback / function by returning a value, breaking a loop, etc. and then continued to add code which the compiler cannot reach because there is no way it can continue.

Try improving your indention, I haven't fully read through the code, but I'm pretty confident that the cause is the return statement just after case 6.
Reply


Messages In This Thread
Unreachable code - by Rhemsis - 24.06.2009, 20:48
Re: Unreachable code - by NigNog1 - 24.06.2009, 20:53
Re: Unreachable code - by Rhemsis - 24.06.2009, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)