[clang] [Clang] emit -Wunused-variable warning for unused structured bindings without the [[maybe_unused]] attribute (PR #127061)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 14 01:50:31 PST 2025
================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++2c -Wunused %s
----------------
Fznamznon wrote:
NIT: why not c++26?
```suggestion
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++26 -Wunused %s
```
https://github.com/llvm/llvm-project/pull/127061
More information about the cfe-commits
mailing list