ruby-changes:57297
From: Yusuke <ko1@a...>
Date: Tue, 27 Aug 2019 14:06:23 +0900 (JST)
Subject: [ruby-changes:57297] Yusuke Endoh: d53b669948 (master): compile.c: remove const from the first argument of dladdr
https://git.ruby-lang.org/ruby.git/commit/?id=d53b669948 From d53b669948af29ca086d915c8bded0d1963e2c98 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 27 Aug 2019 14:05:20 +0900 Subject: compile.c: remove const from the first argument of dladdr Unfortunately, dladdr accepts void*, not const void*, in Solaris. diff --git a/compile.c b/compile.c index 26b580b..008dfc8 100644 --- a/compile.c +++ b/compile.c @@ -8281,7 +8281,7 @@ insn_data_to_s_detail(INSN *iobj) https://github.com/ruby/ruby/blob/trunk/compile.c#L8281 break; case TS_FUNCPTR: { - const void *func = (const void *)OPERAND_AT(iobj, j); + void *func = (void *)OPERAND_AT(iobj, j); #ifdef HAVE_DLADDR Dl_info info; if (dladdr(func, &info) && info.dli_sname) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/