ruby-changes:60932
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Apr 2020 00:35:04 +0900 (JST)
Subject: [ruby-changes:60932] ac0c760843 (master): Mark ruby_memerror as NORETURN
https://git.ruby-lang.org/ruby.git/commit/?id=ac0c760843 From ac0c760843b8bef48d314cacf3f552963391ed16 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Apr 2020 00:27:50 +0900 Subject: Mark ruby_memerror as NORETURN diff --git a/gc.c b/gc.c index 5d313c9..205a986 100644 --- a/gc.c +++ b/gc.c @@ -9596,6 +9596,7 @@ ruby_memerror_body(void *dummy) https://github.com/ruby/ruby/blob/trunk/gc.c#L9596 return 0; } +NORETURN(static void ruby_memerror(void)); RUBY3_ATTR_MAYBE_UNUSED() static void ruby_memerror(void) @@ -9610,9 +9611,9 @@ ruby_memerror(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L9611 else { /* no ruby thread */ fprintf(stderr, "[FATAL] failed to allocate memory\n"); - exit(EXIT_FAILURE); } } + exit(EXIT_FAILURE); } void -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/