Skip to content

Commit 739cec7

Browse files
committed
suppress warning
1 parent 1f90968 commit 739cec7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcudacxx/include/cuda/__device/compute_capability.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ class compute_capability
105105
return __cc_;
106106
}
107107

108+
// clang complains about exlude_from_explicit_instantiation being ignored here.
109+
_CCCL_DIAG_PUSH
110+
_CCCL_DIAG_SUPPRESS_CLANG("-Wignored-attributes")
111+
108112
//! @brief Equality operator.
109113
[[nodiscard]] friend _CCCL_API constexpr bool operator==(compute_capability __lhs, compute_capability __rhs) noexcept
110114
{
@@ -140,6 +144,7 @@ class compute_capability
140144
{
141145
return __lhs.__cc_ >= __rhs.__cc_;
142146
}
147+
_CCCL_DIAG_POP
143148
};
144149

145150
_CCCL_END_NAMESPACE_CUDA

0 commit comments

Comments
 (0)