[all-commits] [llvm/llvm-project] 01d28c: [Clang] emit -Wunused-variable warning for unused ...
Oleksandr T. via All-commits
all-commits at lists.llvm.org
Wed Mar 19 14:06:31 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01d28c1cd7862fb75c8e353b2b18d13f9801b327
https://github.com/llvm/llvm-project/commit/01d28c1cd7862fb75c8e353b2b18d13f9801b327
Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
Date: 2025-03-19 (Wed, 19 Mar 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
A clang/test/SemaCXX/unused-bindings.cpp
M clang/test/SemaCXX/unused.cpp
Log Message:
-----------
[Clang] emit -Wunused-variable warning for unused structured bindings without the [[maybe_unused]] attribute (#127061)
Fixes #125810
---
This patch resolves an issue in Clang where the `-Wunused-variable`
warning was suppressed for structured bindings with elements marked
`[[maybe_unused]]`, causing the entire declaration to be treated as used
and preventing the warning from being emitted.
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