RFR: 8289049: x86_32 build fails with GCC 11 due to newString646_US warning [v2]

Aleksey Shipilev shade at openjdk.org
Mon Aug 15 13:56:39 UTC 2022


On Mon, 15 Aug 2022 13:21:49 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Init buf in newStringCp1252
>
> src/java.base/share/native/libjava/jni_util.c line 540:
> 
>> 538: {
>> 539:     int len = (int) strlen(str);
>> 540:     jchar buf[512] = {0};
> 
> Also newSizedString8859_1, I would have expected it to complain there too.

I think the compilers complain about `malloc`-ed paths, but we can harmonize `newSizedString8859_1` too. Please see new commit.

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

PR: https://git.openjdk.org/jdk/pull/9702


More information about the core-libs-dev mailing list