On Thu, 29 Sep 2022 16:12:11 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:

> After [JDK-8294314](https://bugs.openjdk.org/browse/JDK-8294314), we would 
> have signals_posix.cpp excluded with cast-function-type warning:

Marked as reviewed by dholmes (Reviewer).

src/hotspot/os/posix/signals_posix.cpp line 1727:

> 1725:   // Set up signal handler for suspend/resume
> 1726:   act.sa_flags = SA_RESTART|SA_SIGINFO;
> 1727:   act.sa_handler = CAST_FROM_FN_PTR(sa_handler_t, SR_handler);

The underlying cast in the macro seems a little odd for this situation but if 
it appeases the compiler then that is fine.

-------------

PR: https://git.openjdk.org/jdk/pull/10494

Reply via email to