@@ -185,14 +185,14 @@ template <typename T, bool IsMasked> class PandasHashTable {
185185
186186 auto SetItem (T key, Py_ssize_t val) noexcept -> void { hash_map_[key] = val; }
187187
188- auto SetNA (Py_ssize_t val) noexcept -> void {
188+ auto SetNA ([[maybe_unused]] Py_ssize_t val) noexcept -> void {
189189 if constexpr (IsMasked) {
190190 na_position_ = val;
191191 }
192192 }
193193
194194 auto MapKeysToValues (const nb::ndarray<const T, nb::ndim<1 >> &keys,
195- const nb::ndarray<const T , nb::ndim<1 >> &values) noexcept
195+ const nb::ndarray<const int64_t , nb::ndim<1 >> &values) noexcept
196196 -> void {
197197 nb::call_guard<nb::gil_scoped_release>();
198198 const auto keys_v = keys.view ();
@@ -363,8 +363,8 @@ template <typename T, bool IsMasked> class PandasHashTable {
363363private:
364364 auto UniqueInternal (const nb::ndarray<const T, nb::ndim<1 >> &values,
365365 PandasVector<T> &uniques, Py_ssize_t count_prior = 0 ,
366- Py_ssize_t na_sentinel = -1 ,
367- nb::object na_value = nb::none(), bool ignore_na = false,
366+ [[maybe_unused]] Py_ssize_t na_sentinel = -1 ,
367+ [[maybe_unused]] nb::object na_value = nb::none(), bool ignore_na = false,
368368 nb::object mask_obj = nb::none(),
369369 bool return_inverse = false, bool use_result_mask = false)
370370 -> nb::object {
@@ -438,7 +438,7 @@ template <typename T, bool IsMasked> class PandasHashTable {
438438 template <bool IgnoreNA, bool UseNAValue>
439439 auto UniqueWithInverse (const nb::ndarray<const T, nb::ndim<1 >> &values,
440440 PandasVector<T> &uniques, Py_ssize_t count_prior,
441- Py_ssize_t na_sentinel, T na_value,
441+ [[maybe_unused]] Py_ssize_t na_sentinel, [[maybe_unused]] T na_value,
442442 [[maybe_unused]] nb::object mask_obj = nb::none())
443443 -> nb::ndarray<nb::numpy, const Py_ssize_t, nb::ndim<1>> {
444444 if constexpr (IsMasked) {
@@ -662,7 +662,7 @@ template <typename T, bool IsMasked> class PandasHashTable {
662662 return ;
663663 }
664664
665- klib::KHashMap<T, int64_t , PandasHashFunction<T>, PandasHashEquality<T>>
665+ klib::KHashMap<T, size_t , PandasHashFunction<T>, PandasHashEquality<T>>
666666 hash_map_;
667667 Py_ssize_t na_position_ = -1 ;
668668};
0 commit comments