Gcc doesn't have such a warning. Clang has it, but it has to be explicitly enabled. (It's not even in -Wall or -Wextra.)
Re:Was the iOS SSL Flaw Deliberate?
by throwaway2048 on Thursday February 27, 2014 @10:48AM
(#7312777)
It appears that -Wunreachable-code was removed from gcc due to optimizer issues
But on the other hand, why didn't the compiler generate an "Unreachable Code" warning during build?
We have explicitly set this warning to "Treat as Error" during our builds.