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)
Thu, Dec 25, 4:27 AM
Unknown Object (File)
Nov 28 2025, 9:28 PM
Unknown Object (File)
Nov 22 2025, 2:08 PM
Unknown Object (File)
Nov 11 2025, 10:06 AM
Unknown Object (File)
Nov 9 2025, 12:48 PM
Unknown Object (File)
Nov 6 2025, 2:40 AM
Unknown Object (File)
Nov 2 2025, 3:48 AM
Unknown Object (File)
Oct 31 2025, 5:52 AM
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