RFR: 8263718: unused-result warning happens at os_linux.cpp
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Wed Mar 17 13:38:49 UTC 2021
On Wed, 17 Mar 2021 13:06:46 GMT, Stefan Karlsson <stefank 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);
>>> ```
>>
>> 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
Thanks @stefank !
Status of the Bugzilla ticket which you told is unconfirmed (and it does not seem to be updated since last year!).
I want to suppress the warning if we cannot remove `alloca()` call.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3042
More information about the hotspot-dev
mailing list