Page MenuHomeFreeBSD

kern.mk: use -Wno-error=.. instead of -Wno-error-.. to fix build with clang 12
ClosedPublic

Authored by greg_unrelenting.technology on Mar 9 2021, 7:44 PM.

Details

Summary

clang 12.0.0.rc2 no longer supports the -Wno-error-.. syntax.
The rest of the src tree already uses -Wno-error=.. anyway.

Test Plan

Build with external llvm12, observe no longer failing with stuff like:

error: unknown -Werror warning specifier: '-Wno-error-tautological-compare' [-Werror,-Wunknown-warning-option]

Diff Detail

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