From 60ef99e522fe87cc588f5573f999b34d21cb1eff Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Fri, 2 Aug 2024 10:45:25 -0700 Subject: [PATCH] Fix a dangling reference warning with GCC-13 (#567) Related to https://github.com/rapidsai/cudf/issues/16395 This PR fixes a dangling reference to a temporary warning with gcc13. --- include/cuco/detail/open_addressing/functors.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cuco/detail/open_addressing/functors.cuh b/include/cuco/detail/open_addressing/functors.cuh index ee02d0686..7aacfa042 100644 --- a/include/cuco/detail/open_addressing/functors.cuh +++ b/include/cuco/detail/open_addressing/functors.cuh @@ -48,7 +48,7 @@ struct get_slot { auto const window_idx = idx / StorageRef::window_size; auto const intra_idx = idx % StorageRef::window_size; if constexpr (HasPayload) { - auto const& [first, second] = storage_[window_idx][intra_idx]; + auto const [first, second] = storage_[window_idx][intra_idx]; return thrust::make_tuple(first, second); } else { return storage_[window_idx][intra_idx];