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)
Mon, Jan 6, 3:59 PM
Unknown Object (File)
Dec 9 2024, 7:39 AM
Unknown Object (File)
Dec 4 2024, 11:58 PM
Unknown Object (File)
Dec 4 2024, 3:11 PM
Unknown Object (File)
Dec 4 2024, 3:11 PM
Unknown Object (File)
Dec 4 2024, 3:11 PM
Unknown Object (File)
Dec 4 2024, 2:50 PM
Unknown Object (File)
Nov 29 2024, 10:36 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