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
F108477111: D29157.diff
Sat, Jan 25, 7:52 AM
F108426078: D29157.id.diff
Fri, Jan 24, 4:56 PM
Unknown Object (File)
Sat, Jan 18, 5:13 PM
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
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 Skipped
Unit
Tests Skipped