Page MenuHomeFreeBSD

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

Authored by val_packett.cool on Mar 9 2021, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 13, 10:12 PM
Unknown Object (File)
Tue, Oct 13, 12:43 PM
Unknown Object (File)
Mon, Oct 12, 1:38 PM
Unknown Object (File)
Mon, Oct 12, 9:36 AM
Unknown Object (File)
Thu, Oct 8, 4:54 PM
Unknown Object (File)
Fri, Oct 2, 10:50 AM
Unknown Object (File)
Fri, Oct 2, 8:16 AM
Unknown Object (File)
Sat, Sep 26, 2:07 PM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable