4 ms·
I don't think the bug was deliberate, could of been just an honest mistake. But on the other hand, why didn't the compiler generate an "Unreachable Code" warni
by cl8ton 13y ago
I don't think the bug was deliberate, could of been just an honest mistake.
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.
- Eiwatah4 13y agoGcc doesn't have such a warning. Clang has it, but it has to be explicitly enabled. (It's not even in -Wall or -Wextra.)
- deleted 13y ago[deleted]
- throwaway2048 13y agoIt appears that -Wunreachable-code was removed from gcc due to optimizer issues http://gcc.gnu.org/ml/gcc-help/2011-05/msg00360.html http://gcc.gnu.org/ml/gcc-help/2011-05/msg00360.html