RFR: 8263718: unused-result warning happens at os_linux.cpp
Stefan Karlsson
stefank at openjdk.java.net
Wed Mar 17 13:09:48 UTC 2021
On Wed, 17 Mar 2021 10:28:56 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
>> Isn't the standard way to silence these kind of problem to cast the result to (void):
>> (void)alloca(((pid ^ counter++) & 7) * 128);
>
>> Isn't the standard way to silence these kind of problem to cast the result to (void):
>>
>> ```
>> (void)alloca(((pid ^ counter++) & 7) * 128);
>> ```
>
> I tried it at first, but I still saw the warning.
I see. I found this page:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
-------------
PR: https://git.openjdk.java.net/jdk/pull/3042
More information about the hotspot-dev
mailing list