RFR: 8283059: Uninitialized warning in check_code.c with GCC 11.2 [v2]
Mikael Vidstedt
mikael at openjdk.java.net
Fri Mar 18 02:39:23 UTC 2022
On Fri, 18 Mar 2022 02:10:32 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Mikael Vidstedt has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use const char for check_and_push_string_utf
>
> src/java.base/share/native/libverify/check_code.c line 472:
>
>> 470:
>> 471: static void check_and_push_malloc_block(context_type *context, void *ptr);
>> 472: static void check_and_push_string_utf(context_type *context, const void *ptr);
>
> Can't this be:
>
> `static void check_and_push_string_utf(context_type *context, const char* str);`
Indeed it can. Fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7859
More information about the core-libs-dev
mailing list