[llvmlinux] [PATCH] sched/fair: disable clang -Wconstant-logical-operand
philipp97kl at gmail.com
Tue Aug 28 10:27:44 UTC 2018
Am Mo., 27. Aug. 2018 um 21:15 Uhr schrieb Peter Zijlstra <
peterz at infradead.org>:
> It's just one config that produces the warning. IMO the warning is
> pretty useless.
> That said; I never got a response on:
> which asked if:
> #define sched_feat(x) !!(sysctl_sched_features & (1UL <<
> would work, since that casts to a bool.
I'm sorry for not answering to the question before. I thought you would
also consider this one ugly.
I've just tested it (again with v4.16-rc5) and it fixes the warning.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMLinux