We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bace529 commit 7a35089Copy full SHA for 7a35089
sycl/include/sycl/handler.hpp
@@ -1609,8 +1609,10 @@ class __SYCL_EXPORT handler {
1609
MergedProps...>(
1610
std::forward<decltype(args)>(args)...);
1611
} else {
1612
- // Always false, but template-dependent.
1613
- static_assert(WrapAsVal != WrapAsVal, "Unexpected WrapAsVal");
+ // Always false, but template-dependent. Can't compare `WrapAsVal`
+ // with itself because of `-Wtautological-compare` warning.
1614
+ static_assert(!std::is_same_v<KernelName, KernelName>,
1615
+ "Unexpected WrapAsVal");
1616
}
1617
};
1618
if constexpr (detail::KernelLambdaHasKernelHandlerArgT<
0 commit comments