Skip to content

Commit

Permalink
Merge pull request #372 from crtrott/fix-bogus-warning
Browse files Browse the repository at this point in the history
Fix false warning on some compilers for unused variable
  • Loading branch information
dalg24 authored Dec 18, 2024
2 parents c21078c + aa4ed0e commit 00448b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/experimental/__p0009_bits/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct tuple_idx_matcher {
using type = tuple_member<T, Idx>;
template<class Other>
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; }
}
Expand Down

0 comments on commit 00448b8

Please sign in to comment.