> > There may be ways to rewrite that expression to avoid triggering the > warning on a 32-bit platform. Untested, but does this help: > > if (sizeof(mask) > 4 && mask <= 0xffffffffu) { > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3226 > Virtualization: qemu.org | libvirt.org > Unfortunately, the compiler still catches that the statement is always true for 32-bit. An alternative might be to convert cases like this to a macro instead, which doesn't cause any errors.
- [PATCH v4 0/2] Replaced locks with lock guard macros dnbrdsky
- [PATCH v4 2/2] lockable: replaced locks with lock g... dnbrdsky
- Re: [PATCH v4 2/2] lockable: replaced locks wit... Stefan Hajnoczi
- [PATCH v4 1/2] lockable: fix __COUNTER__ macro to b... dnbrdsky
- Re: [PATCH v4 1/2] lockable: fix __COUNTER__ ma... Stefan Hajnoczi
- Re: [PATCH v4 0/2] Replaced locks with lock guard m... no-reply
- Re: [PATCH v4 0/2] Replaced locks with lock gua... Stefan Hajnoczi
- Re: [PATCH v4 0/2] Replaced locks with lock... Daniel Brodsky
- Re: [PATCH v4 0/2] Replaced locks with ... Richard Henderson
- Re: [PATCH v4 0/2] Replaced locks ... Eric Blake
- Re: [PATCH v4 0/2] Replaced lo... Daniel Brodsky
- Re: [PATCH v4 0/2] Replace... Richard Henderson
- Re: [PATCH v4 0/2] Replace... Daniel Brodsky
- Re: [PATCH v4 0/2] Replace... Richard Henderson
- Re: [PATCH v4 0/2] Replace... Daniel Brodsky
- Re: [PATCH v4 0/2] Replace... Peter Maydell