Why does GCC not warn for unreachable code?
GCC 4.4 will give you a warning. In the later versions of GCC, this feature (-Wunreachable-code) has been removed. See Re: gcc -Wunreachable-code option The -Wunreachable-code has been removed, because it was unstable: it relied on the optimizer, and so different versions of gcc would warn about different code. The compiler still accepts and ignores … Read more