On Tue, 3 Sep 2024 06:42:42 GMT, Julian Waters <jwat...@openjdk.org> wrote:
>> At one stage we started using the idiom: >> >> (void) someFunc(); >> >> to tell the compiler to not warn about the unused result. IIRC that stopped >> working. > > Not entirely sure about clang, but casting to void to silence warnings should > still work for gcc > You don't think it would be better to check the return code? Hi , maybe we could check it ; in HS code we mostly do (but there we have UL). But would be a separate PR I guess (splashscreen_sys.m on macOS has the same issue) . ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/20812#discussion_r1741542559