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)
Sun, Nov 10, 3:45 PM
Unknown Object (File)
Fri, Nov 8, 6:23 AM
Unknown Object (File)
Thu, Nov 7, 8:39 PM
Unknown Object (File)
Thu, Nov 7, 2:05 AM
Unknown Object (File)
Mon, Nov 4, 3:28 PM
Unknown Object (File)
Fri, Oct 18, 12:16 AM
Unknown Object (File)
Wed, Oct 16, 12:42 AM
Unknown Object (File)
Tue, Oct 15, 5:46 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