summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/string.c b/string.c
index 903222e0e4..8bcc6bb9c8 100644
--- a/string.c
+++ b/string.c
@@ -3015,6 +3015,7 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
incompatible:
rb_raise(rb_eEncCompatError, "incompatible character encodings: %s and %s",
rb_enc_name(str_enc), rb_enc_name(ptr_enc));
+ UNREACHABLE_RETURN(Qundef);
}
VALUE
@@ -9679,6 +9680,7 @@ rb_str_crypt(VALUE str, VALUE salt)
short_salt:
rb_raise(rb_eArgError, "salt too short (need >=2 bytes)");
+ UNREACHABLE_RETURN(Qundef);
}