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

SendaoYan syan at openjdk.org
Fri Dec 13 03:40:37 UTC 2024


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

>> I saw this in another bug report too from the same submitter.
>> I don't know that I want to encourage this as a pattern, except in debug builds. better might be to just copy dlinfo.dli_fname into buf ..
>
> 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.

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

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


More information about the client-libs-dev mailing list