RFR: 8263718: unused-result warning happens at os_linux.cpp

Yasumasa Suenaga ysuenaga at openjdk.java.net
Wed Mar 17 10:31:47 UTC 2021


On Wed, 17 Mar 2021 10:18:25 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.

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

PR: https://git.openjdk.java.net/jdk/pull/3042


More information about the hotspot-dev mailing list