ruby-changes:57296
From: Yusuke <ko1@a...>
Date: Tue, 27 Aug 2019 13:59:28 +0900 (JST)
Subject: [ruby-changes:57296] Yusuke Endoh: 8eee3f3a36 (master): signal.c: Don't mark ruby_abort as NORETURN on Solaris
https://git.ruby-lang.org/ruby.git/commit/?id=8eee3f3a36 From 8eee3f3a3623d728c160c41546513594793fb7fb Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 27 Aug 2019 13:57:25 +0900 Subject: signal.c: Don't mark ruby_abort as NORETURN on Solaris to suppress a warning. ``` signal.c: In function 'ruby_abort': signal.c:987:1: warning: 'noreturn' function does return } ^ ``` diff --git a/signal.c b/signal.c index c33c756..3c31935 100644 --- a/signal.c +++ b/signal.c @@ -970,7 +970,9 @@ sigbus(int sig SIGINFO_ARG) https://github.com/ruby/ruby/blob/trunk/signal.c#L970 } #endif +#ifndef __sun NORETURN(static void ruby_abort(void)); +#endif static void ruby_abort(void) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/