From afa1d5080fcc57616cfec4953c59bbf704b8f671 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 24 Mar 2018 11:04:37 +0000 Subject: compile.c: suppress missing-noreturn * compile.c (add_insn_info): move return statement to suppress missing-noreturn warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 8ffaef2fdf..2dad4ad4ad 100644 --- a/compile.c +++ b/compile.c @@ -1945,9 +1945,6 @@ add_insn_info(struct iseq_insn_info_entry *insns_info, unsigned int *positions, positions[insns_info_index] = code_index; return TRUE; } - else { - return FALSE; - } } else if (list->type == ISEQ_ELEMENT_ADJUST) { ADJUST *adjust = (ADJUST *)list; @@ -1958,13 +1955,11 @@ add_insn_info(struct iseq_insn_info_entry *insns_info, unsigned int *positions, positions[insns_info_index] = code_index; return TRUE; } - else { - return FALSE; - } } else { VM_UNREACHABLE(add_insn_info); } + return FALSE; } /** -- cgit v1.2.3