warning C4702: unreachable code
Why would VC++ tell me "warning C4702: unreachable code" for code that is reachable?
Does it search through the entire program to see every possible way that the function can be called and then determine that it's impossible to reach, or does it just search through each function separately?
I'm getting that warning on a lot of catch (...) blocks like:
Unless it looks through every function called in the try block to see if any of them throw exceptions, how can it possibly determine that the return is unreachable?
return 0; // warning C4702: unreachable code
And why would it only start complaining about that now, when I already compiled those same functions in the same files cleanly in different projects?
I swear my compiler must be on drugs or something. :p