mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Added more NORETURN declarations
This commit is contained in:
parent
a1e1fdca09
commit
5d430c1b34
11 changed files with 37 additions and 11 deletions
|
@ -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: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue