On 10/24/2020 1:17 AM, Thomas Huth wrote:
Compiling all code with -Wno-void-pointer-to-enum-cast sounds like the wrong
approach to me, since this might hide some real bugs in other spots instead.
Could you please try to cast the value through (uintptr_t) first, e.g. :
S390Feat feat = (S390Feat)(uintptr_t) opaque;
It's a little bit ugly, but still better than to disable the warning
globally, I think.
Thomas
Hi Thomas,
I did a quick check and casting to a uintptr_t seem to be a working
solution to the issue. I will fix this in v3
Thanks,
Daniele