[PATCH master] kbuild: fix clangd warning with GCC compile_commands.json
Sascha Hauer
s.hauer at pengutronix.de
Wed Jan 8 06:32:47 PST 2025
On Tue, 07 Jan 2025 13:24:26 +0100, Ahmad Fatoum wrote:
> If barebox is configured to pass -ftrivial-auto-var-init=zero as
> argument to GCC, the compile_commands.json will list it prompting clang
> to complain:
>
> '-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own
> peril for benchmarking purpose only with
> '-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'
>
> [...]
Applied, thanks!
[1/1] kbuild: fix clangd warning with GCC compile_commands.json
https://git.pengutronix.de/cgit/barebox/commit/?id=2c151ad3fb19 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list