Re: [PATCH v4 1/2] compiler.h: add const_true()
From: Linus Torvalds
Date: Mon Nov 18 2024 - 12:10:23 EST
On Sun, 17 Nov 2024 at 19:22, Vincent Mailhol
<mailhol.vincent@xxxxxxxxxx> wrote:
>
> I did a tree wide replacement of __is_constexpr() with is_const() and
> did an allyesconfig build test. It yields a -Wint-in-bool-context
> warning in GCC for both the "0*!(x)" and the "0&&(x)" each time the
> expression contains non-boolean operators, for example: * or <<.
Grr. Annoying. But yeah, replace the "!" with "!= 0" and I guess it
should be ok.
Linus