mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] .clangd: remove -enable-trivial-auto-var-init-zero-... flag
Date: Thu,  6 Nov 2025 15:36:39 +0100	[thread overview]
Message-ID: <20251106143640.224768-1-a.fatoum@pengutronix.de> (raw)

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




             reply	other threads:[~2025-11-06 14:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-06 14:36 Ahmad Fatoum [this message]
2025-11-07 14:44 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251106143640.224768-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox