[all-commits] [llvm/llvm-project] a635bb: [C] Update the -Wdefault-const-init-unsafe wording...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Fri May 2 09:24:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a635bbf1418e351651ed86230eab3d13f871f971
https://github.com/llvm/llvm-project/commit/a635bbf1418e351651ed86230eab3d13f871f971
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-05-02 (Fri, 02 May 2025)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaInit.cpp
M clang/test/Sema/sizeless-1.c
M clang/test/Sema/typedef-retain.c
M clang/test/Sema/warn-default-const-init.c
M clang/test/SemaOpenCL/invalid-block.cl
Log Message:
-----------
[C] Update the -Wdefault-const-init-unsafe wording (#138266)
This drops the "and is incompatible with C++" phrasing from the
diagnostic unless -Wc++-compat is explicitly passed. This makes the
diagnostic less confusing when it is on by default rather than enabled
because of C++ compatibility concerns
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list