JavaScriptCore should compile -Wunreachable-code This would make it easier to not break MSVC (which seems to have a milder "unreachable" warning). Unfortunately gcc's -Wunreachable-code is pretty crazy. It warns about all sorts of things, some of which make little sense. Maybe it has trouble with c++.