Unreachable code warning in specialize.c

tiran · GitHub

Bug report

Some versions of clang complain about unreachable code in specialize.c

#ifndefPy_STATS_Py_SET_OPCODE(*instr, COMPARE_OP); return; #endifif (next_opcode==EXTENDED_ARG) { SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_EXTENDED_ARG); goto failure; } SPECIALIZATION_FAIL(COMPARE_OP, SPEC_FAIL_COMPARE_OP_NOT_FOLLOWED_BY_COND_JUMP); goto failure; Python/specialize.c:1915:13: warning: code will never be executed [-Wunreachable-code] The problem is trivial to fix.