[clang] IntervalPartitionTest.cpp: Suppress a warning. [-Wunused-template] (PR #215564)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 06:42:19 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: NAKAMURA Takumi (chapuni)

<details>
<summary>Changes</summary>

I think it'd be fair just to suppress since this is just a test.

---
Full diff: https://github.com/llvm/llvm-project/pull/215564.diff


1 Files Affected:

- (modified) clang/unittests/Analysis/IntervalPartitionTest.cpp (+1-1) 


``````````diff
diff --git a/clang/unittests/Analysis/IntervalPartitionTest.cpp b/clang/unittests/Analysis/IntervalPartitionTest.cpp
index 845608504a3d0..e2391ac56e69c 100644
--- a/clang/unittests/Analysis/IntervalPartitionTest.cpp
+++ b/clang/unittests/Analysis/IntervalPartitionTest.cpp
@@ -90,7 +90,7 @@ using ::testing::UnorderedElementsAre;
 
 MATCHER_P(intervalID, ID, "") { return arg->ID == ID; }
 
-template <typename... T> auto blockIDs(T... IDs) {
+template <typename... T> [[maybe_unused]] auto blockIDs(T... IDs) {
   return UnorderedElementsAre(Property(&CFGBlock::getBlockID, IDs)...);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/215564


More information about the cfe-commits mailing list