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.

(cherry picked from commit 395d46caaed73228b84dfaeb37c702304a46ba8f)

Details

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