Re: [PATCH] Add -fzero-init-padding-bits to bindgen_skip_cflags
From: Kees Cook
Date: Thu Feb 06 2025 - 10:45:29 EST
On Wed, Jan 29, 2025 at 02:50:02PM -0700, Justin M. Forbes wrote:
> This seems to break the build when building with gcc15.
>
> Unable to generate bindings: ClangDiagnostic("error: unknown argument: '-fzero-init-padding-bits=all'\n")
>
> Signed-off-by: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx>
Thanks for this! I keep forgetting to keep flags in sync. I wonder if
there is a way to automate some kind of warning for this (even when
CONFIG_RUST=n)?
Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
Miguel, I see you took this already -- is it planned to land for -rc2?
Thanks!
-Kees
--
Kees Cook