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)
Fri, Oct 10, 11:35 AM
Unknown Object (File)
Fri, Oct 10, 4:50 AM
Unknown Object (File)
Fri, Oct 10, 4:50 AM
Unknown Object (File)
Fri, Oct 10, 4:50 AM
Unknown Object (File)
Thu, Oct 9, 11:29 PM
Unknown Object (File)
Thu, Oct 2, 9:44 PM
Unknown Object (File)
Fri, Sep 26, 6:05 PM
Unknown Object (File)
Sep 11 2025, 9:27 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