[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-05-01 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/137961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-05-01 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Thanks, this should allow us to try and keep > `-Wdefault-const-init-var-unsafe` enabled while disabling > `-Wdefault-const-init-field-unsafe`. Thanks! https://github.com/llvm/llvm-project/pull/137961 ___ cfe-commits mailing li

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance approved this pull request. Thanks, this should allow us to try and keep `-Wdefault-const-init-var-unsafe` enabled while disabling `-Wdefault-const-init-field-unsafe`. https://github.com/llvm/llvm-project/pull/137961 __

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/137961 >From d331697715977eca37197f25bac31b4724ffefee Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 30 Apr 2025 08:57:48 -0400 Subject: [PATCH 1/2] [C] Modify -Wdefault-const-init Post-commit review fee

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread Mariya Podchishchaeva via cfe-commits
@@ -1,28 +1,23 @@ -// RUN: %clang_cc1 -fsyntax-only -verify=c,unsafe -Wdefault-const-init %s -// RUN: %clang_cc1 -fsyntax-only -verify=c,unsafe -Wc++-compat %s -// RUN: %clang_cc1 -fsyntax-only -verify=unsafe %s -// RUN: %clang_cc1 -fsyntax-only -verify=c -Wdefault-const-init -Wn

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/137961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/137961 Post-commit review feedback on https://github.com/llvm/llvm-project/pull/137166 raised a concern from the Linux kernel about wanting to silence the new diagnostic when the uninitialized object is a const m

[clang] [C] Modify -Wdefault-const-init (PR #137961)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes Post-commit review feedback on https://github.com/llvm/llvm-project/pull/137166 raised a concern from the Linux kernel about wanting to silence the new diagnostic when the uninitialized object is a con