Turn off set but not used warnings for kernel builds with clang13.
These warnings can be turned back on by setting the following in src.conf:
WITH_SET_BUT_NOTUSED_KERNEL_WARNINGS=
Differential D34784
suppress set but not used warnings for kernel builds rew on Apr 4 2022, 11:46 PM. Authored by
Details
Turn off set but not used warnings for kernel builds with clang13. These warnings can be turned back on by setting the following in src.conf: WITH_SET_BUT_NOTUSED_KERNEL_WARNINGS=
Diff Detail
Event TimelineComment Actions this breaks boostrapping
Comment Actions I have ~65 changes in my queue to eliminate all the trivial errors for the arm kernel build. Comment Actions Modules get built even if particular code is built-in into the kernel, artificially raising the clang spam. The fix would be to stop building said modules to begin with. Comment Actions Taking this review in a different direction.. Build kernel with -Wno-unused-but-set-variable by default.
|