Re: [PATCH] Makefile.extrawarn: Move -Wcast-function-type-strict to W=1
From: Kees Cook
Date: Sat Oct 01 2022 - 10:48:51 EST
On Fri, 30 Sep 2022 20:33:10 +0000, Sami Tolvanen wrote:
> We enable -Wcast-function-type globally in the kernel to warn about
> mismatching types in function pointer casts. Compilers currently
> warn only about ABI incompability with this flag, but Clang 16 will
> enable a stricter version of the check by default that checks for an
> exact type match. This will be very noisy in the kernel, so disable
> -Wcast-function-type-strict without W=1 until the new warnings have
> been addressed.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] Makefile.extrawarn: Move -Wcast-function-type-strict to W=1
https://git.kernel.org/kees/c/2120635108b3
--
Kees Cook