Skip to content

Commit 69ff5e1

Browse files
committed
Add [[nodiscard]] attribute to head() and data() methods in mutable_column_device_view_core
1 parent f708ff9 commit 69ff5e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/include/cudf/column/column_device_view_base.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ class alignas(16) mutable_column_device_view_core : public detail::column_device
586586
*/
587587
template <typename T = void,
588588
CUDF_ENABLE_IF(cuda::std::is_same_v<T, void> or is_rep_layout_compatible<T>())>
589-
CUDF_HOST_DEVICE T* head() const noexcept
589+
[[nodiscard]] CUDF_HOST_DEVICE T* head() const noexcept
590590
{
591591
return const_cast<T*>(detail::column_device_view_base::head<T>());
592592
}
@@ -604,7 +604,7 @@ class alignas(16) mutable_column_device_view_core : public detail::column_device
604604
* @return Typed pointer to underlying data, including the offset
605605
*/
606606
template <typename T, CUDF_ENABLE_IF(is_rep_layout_compatible<T>())>
607-
CUDF_HOST_DEVICE T* data() const noexcept
607+
[[nodiscard]] CUDF_HOST_DEVICE T* data() const noexcept
608608
{
609609
return const_cast<T*>(detail::column_device_view_base::data<T>());
610610
}

0 commit comments

Comments
 (0)