[PATCH vkd3d 2/5] include: Avoid using a field reference as a truth value.

Henri Verbeet hverbeet at gmail.com
Thu Jan 6 03:33:31 CST 2022


On Fri, 17 Dec 2021 at 19:05, Zebediah Figura <zfigura at codeweavers.com> wrote:
>
> Ported from 5d01ebab89cee8a3499ee00729c048068d5b719d from Wine.
>
> Despite the commit message there, even GCC 11.1 chokes on this.
>
For what it's worth, there's a single usage of RB_FOR_EACH_ENTRY in
vkd3d, and it looks like something that doesn't particularly need it.
We have generally preferred using rb_for_each_entry(), so we could
also just get rid of these macros.



More information about the wine-devel mailing list