RFR: 8346059: [ASAN] awt_LoadLibrary.c reported compile warning ignoring return value of function by clang17

SendaoYan syan at openjdk.org
Fri Dec 13 04:31:34 UTC 2024


On Fri, 13 Dec 2024 03:38:15 GMT, SendaoYan <syan at openjdk.org> wrote:

>> Hi @prrace,
>>> I saw this in another bug report too from the same submitter.
>> 
>> I did create 3 clang17 compile waring issues, the compile warings occur in different files, and maybe use should different solutions to solve the issue, so I create the separate issues.
>
>> better might be to just copy dlinfo.dli_fname into buf
> 
> "Something would be very, very broken if this were to fail.", So I think `perror` maybe better, it will print which file and the reason get realpath fail.

Should I combine 3 similar issues([JDK-8346104](https://bugs.openjdk.org/browse/JDK-8346104)/[JDK-8346103](https://bugs.openjdk.org/browse/JDK-8346103)/[JDK-8346059](https://bugs.openjdk.org/browse/JDK-8346059)) to 1 issue

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22701#discussion_r1883270736


More information about the client-libs-dev mailing list