From aa4ed0e88b758fbe6b98050fdf4efa7f5ac24462 Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Tue, 17 Dec 2024 14:41:09 -0700 Subject: [PATCH] Fix false warning on some compilers for unused variable --- include/experimental/__p0009_bits/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/experimental/__p0009_bits/utility.hpp b/include/experimental/__p0009_bits/utility.hpp index f7f39d60..a078eeb0 100644 --- a/include/experimental/__p0009_bits/utility.hpp +++ b/include/experimental/__p0009_bits/utility.hpp @@ -115,7 +115,7 @@ struct tuple_idx_matcher { using type = tuple_member; template MDSPAN_FUNCTION - constexpr auto operator | (Other v) const { + constexpr auto operator | ([[maybe_unused]] Other v) const { if constexpr (Idx == SearchIdx) { return *this; } else { return v; } }