Skip to content

Commit 47f55b4

Browse files
committed
Mark as NORETURN
1 parent 206110a commit 47f55b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/ruby/optional/capi/ext/exception_spec.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ VALUE exception_spec_rb_set_errinfo(VALUE self, VALUE exc) {
3636
return Qnil;
3737
}
3838

39+
NORETURN(VALUE exception_spec_rb_error_frozen_object(VALUE self, VALUE object));
40+
3941
VALUE exception_spec_rb_error_frozen_object(VALUE self, VALUE object) {
40-
rb_error_frozen_object(object);
41-
return Qnil;
42+
rb_error_frozen_object(object);
43+
UNREACHABLE_RETURN(Qnil);
4244
}
4345

4446
VALUE exception_spec_rb_syserr_new(VALUE self, VALUE num, VALUE msg) {

0 commit comments

Comments
 (0)