Skip to content

Commit 44a1025

Browse files
[SYCL] Fix -Werror=unused-but-set-variable warning with old gcc (#18602)
Follow-up for #18477.
1 parent 72b92c3 commit 44a1025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/device_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
514514
// descriptor first when defining the cache data member). For "CallOnce"
515515
// cache we want to be querying cached value so "false" is the right
516516
// template parameter for such delegation.
517-
constexpr bool DependentFalse = InitializingCache && false;
517+
[[maybe_unused]] constexpr bool DependentFalse = InitializingCache && false;
518518

519519
if constexpr (decltype(MCache)::has<Param>() && !InitializingCache) {
520520
return MCache.get<Param>();

0 commit comments

Comments
 (0)