[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-build-dev
Subject: Re: RFR: 8294594: Fix cast-function-type warning in signal handling code
From: David Holmes <dholmes () openjdk ! org>
Date: 2022-09-30 4:56:33
Message-ID: t1X4oiPfM2ZDNQPceadU5bsr1Kg5VQWppWYjWVeHVHI=.14ae324c-b439-4b75-8c64-5c5e33e7d915 () github ! com
[Download RAW message or body]
On Thu, 29 Sep 2022 16:12:11 GMT, Aleksey Shipilev <shade@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic