Added more NORETURN declarations

This commit is contained in:
Nobuyoshi Nakada 2020-05-11 00:24:14 +09:00
parent a1e1fdca09
commit 5d430c1b34
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
11 changed files with 37 additions and 11 deletions

View file

@ -1302,12 +1302,13 @@ enc_compatible_p(VALUE klass, VALUE str1, VALUE str2)
return rb_enc_from_encoding(enc);
}
NORETURN(static VALUE enc_s_alloc(VALUE klass));
/* :nodoc: */
static VALUE
enc_s_alloc(VALUE klass)
{
rb_undefined_alloc(klass);
return Qnil;
UNREACHABLE_RETURN(Qnil);
}
/* :nodoc: */