diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-24 11:04:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-24 11:04:37 +0000 |
commit | afa1d5080fcc57616cfec4953c59bbf704b8f671 (patch) | |
tree | 1f5b59b70fbd6dcc92accb5324f51734408ef16f /compile.c | |
parent | f3fbf1dfadea80646c68719d439da699d527b0dc (diff) | |
download | ruby-afa1d5080fcc57616cfec4953c59bbf704b8f671.tar.gz |
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
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } /** |