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.
-Werror=unused-but-set-variable
1 parent 72b92c3 commit 44a1025Copy full SHA for 44a1025
sycl/source/detail/device_impl.hpp
@@ -514,7 +514,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
514
// descriptor first when defining the cache data member). For "CallOnce"
515
// cache we want to be querying cached value so "false" is the right
516
// template parameter for such delegation.
517
- constexpr bool DependentFalse = InitializingCache && false;
+ [[maybe_unused]] constexpr bool DependentFalse = InitializingCache && false;
518
519
if constexpr (decltype(MCache)::has<Param>() && !InitializingCache) {
520
return MCache.get<Param>();
0 commit comments