RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

Matthias Baesken mbaesken at openjdk.org
Tue Sep 3 07:13:19 UTC 2024


On Tue, 3 Sep 2024 06:42:42 GMT, Julian Waters <jwaters at 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


More information about the build-dev mailing list