diff --git a/cpp/src/prims/per_v_transform_reduce_incoming_outgoing_e.cuh b/cpp/src/prims/per_v_transform_reduce_incoming_outgoing_e.cuh index cfba8a35cc1..0b6c6a554bb 100644 --- a/cpp/src/prims/per_v_transform_reduce_incoming_outgoing_e.cuh +++ b/cpp/src/prims/per_v_transform_reduce_incoming_outgoing_e.cuh @@ -516,7 +516,7 @@ void per_v_transform_reduce_e(raft::handle_t const& handle, using minor_tmp_buffer_type = std::conditional_t, edge_dst_property_t>; - std::unique_ptr minor_tmp_buffer{}; + [[maybe_unused]] std::unique_ptr minor_tmp_buffer{}; if constexpr (GraphViewType::is_multi_gpu && !update_major) { minor_tmp_buffer = std::make_unique(handle, graph_view); }