Page MenuHomeFreeBSD

ofed: quiet gcc -Wint-in-bool-context

Authored by rlibby on Feb 17 2021, 11:33 PM.



The int in the argument to the ternary triggered -Wint-in-bool-context
from gcc. Upstream linux has a larger and more entangled patch,
12f727721eee61b3d19dedb95cb893b2baa9fe41, which doesn't apply cleanly.
When we eventually sync that, we can just drop this change.

Test Plan
env MAKEOBJDIRPREFIX=/usr/obj/gcc9 CROSS_TOOLCHAIN=amd64-gcc9 make buildkernel

Diff Detail

R10 FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This is mildly icky, but not terribly so. Since it will be replaced, it's good enough for now. Esp since I can't think of something better to suggest.

This revision is now accepted and ready to land.Feb 17 2021, 11:53 PM

Looks good. Don't forget to MFC.

This revision was automatically updated to reflect the committed changes.