[前][次][番号順一覧][スレッド一覧]

ruby-changes:58187

From: Nobuyoshi <ko1@a...>
Date: Thu, 10 Oct 2019 14:08:22 +0900 (JST)
Subject: [ruby-changes:58187] a23b639050 (master): negative_size_allocation_error never returns

https://git.ruby-lang.org/ruby.git/commit/?id=a23b639050

From a23b639050792c74cbf585aff6742c6ee3931f5f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 10 Oct 2019 14:07:27 +0900
Subject: negative_size_allocation_error never returns


diff --git a/gc.c b/gc.c
index cc4ea12..e970ea1 100644
--- a/gc.c
+++ b/gc.c
@@ -1004,7 +1004,7 @@ void rb_gcdebug_print_obj_condition(VALUE obj); https://github.com/ruby/ruby/blob/trunk/gc.c#L1004
 
 static VALUE define_final0(VALUE obj, VALUE block);
 
-static void negative_size_allocation_error(const char *);
+NORETURN(static void negative_size_allocation_error(const char *));
 
 static void init_mark_stack(mark_stack_t *stack);
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]