* [PATCH] .clangd: remove -enable-trivial-auto-var-init-zero-... flag
@ 2025-11-06 14:36 Ahmad Fatoum
2025-11-07 14:44 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-11-06 14:36 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-07 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-06 14:36 [PATCH] .clangd: remove -enable-trivial-auto-var-init-zero-... flag Ahmad Fatoum
2025-11-07 14:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox