HomeFreeBSD

Don't error out on unused but set variables with clang 13

Description

Don't error out on unused but set variables with clang 13

Clang 13.0.0 now has a -Wunused-but-set-variable warning similar to the
one gcc has had for quite a while. Since this triggers *very* often for
our kernel builds, don't make it a hard error, but leave the warning
visible so is some incentive to fix the instances.

MFC after: 3 days

Details

Provenance
dimAuthored on Aug 29 2021, 1:53 PM
Parents
R10:22b8ab15c41a: Remove -simplifycfg-dup-ret from CLANG_OPT_SMALL flags for clang 13
Branches
Unknown
Tags
Unknown