[clang] IntervalPartitionTest.cpp: Suppress a warning. [-Wunused-template] (PR #215564)
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 06:41:43 PDT 2026
https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/215564
I think it'd be fair just to suppress since this is just a test.
>From 78801375bf30ef59abf60cb44c8ccc35c4132f46 Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 11 Aug 2026 21:48:26 +0900
Subject: [PATCH] IntervalPartitionTest.cpp: Suppress a warning.
[-Wunused-template]
I think it'd be fair just to suppress since this is just a test.
---
clang/unittests/Analysis/IntervalPartitionTest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)...);
}
More information about the cfe-commits
mailing list