[PATCH] .clangd: remove -enable-trivial-auto-var-init-zero-... flag
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Nov 6 06:36:39 PST 2025
Debian 12 sill had clang-12, where specifying the option:
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
was needed to avoid a warning when the build was configured for GCC with
-ftrivial-auto-var-init=zero.
Since clang-16, this option has been removed and it now results in a warning
instead of avoiding one.
Given that Debian 13 has clang-19, let's just drop the flag to remove
the warning for developers with a recent clang version.
This reverts commit 2c151ad3fb19 ("kbuild: fix clangd warning with GCC
compile_commands.json").
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
.clangd | 1 -
1 file changed, 1 deletion(-)
diff --git a/.clangd b/.clangd
index 027fb11d7a11..4057270b2a83 100644
--- a/.clangd
+++ b/.clangd
@@ -1,3 +1,2 @@
CompileFlags:
Remove: [ -mabi=lp64, -fno-allow-store-data-races]
- Add: [ -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang ]
--
2.47.3
More information about the barebox
mailing list