@@ -34,7 +34,7 @@ struct zip_hi {
3434 }
3535};
3636template <unsigned cap> struct reverse_index {
37- static constexpr unsigned get (unsigned index, const unsigned size) {
37+ static constexpr unsigned get (unsigned index, const unsigned /* size*/ ) {
3838 return index < cap ? (cap - 1 - index) : index;
3939 }
4040};
@@ -280,7 +280,8 @@ template<typename T, uint8_t w, uint8_t upsampfact,
280280 class simd_type =
281281 xsimd::make_sized_batch_t <T, find_optimal_simd_width<T, w>()>> // aka ns
282282static FINUFFT_ALWAYS_INLINE void eval_kernel_vec_Horner (
283- T *FINUFFT_RESTRICT ker, T x, const finufft_spread_opts &opts) noexcept
283+ T *FINUFFT_RESTRICT ker, T x,
284+ const finufft_spread_opts &opts [[maybe_unused]]) noexcept
284285/* Fill ker[] with Horner piecewise poly approx to [-w/2,w/2] ES kernel eval at
285286x_j = x + j, for j=0,..,w-1. Thus x in [-w/2,-w/2+1]. w is aka ns.
286287This is the current evaluation method, since it's faster (except i7 w=16).
@@ -1394,7 +1395,7 @@ template<typename T>
13941395static void bin_sort_singlethread (std::vector<BIGINT> &ret, UBIGINT M, const T *kx,
13951396 const T *ky, const T *kz, UBIGINT N1, UBIGINT N2,
13961397 UBIGINT N3, double bin_size_x, double bin_size_y,
1397- double bin_size_z, int debug)
1398+ double bin_size_z, int debug [[maybe_unused]] )
13981399/* Returns permutation of all nonuniform points with good RAM access,
13991400 * ie less cache misses for spreading, in 1D, 2D, or 3D. Single-threaded version
14001401 *
@@ -1466,9 +1467,10 @@ static void bin_sort_singlethread(std::vector<BIGINT> &ret, UBIGINT M, const T *
14661467}
14671468
14681469template <typename T>
1469- static void bin_sort_multithread (std::vector<BIGINT> &ret, UBIGINT M, T *kx, T *ky, T *kz,
1470- UBIGINT N1, UBIGINT N2, UBIGINT N3, double bin_size_x,
1471- double bin_size_y, double bin_size_z, int debug,
1470+ static void bin_sort_multithread (std::vector<BIGINT> &ret, UBIGINT M, T *kx, T *ky,
1471+ T *kz, UBIGINT N1, UBIGINT N2, UBIGINT N3,
1472+ double bin_size_x, double bin_size_y,
1473+ double bin_size_z, int debug [[maybe_unused]],
14721474 int nthr)
14731475/* Mostly-OpenMP'ed version of bin_sort.
14741476 For documentation see: bin_sort_singlethread.
@@ -1680,7 +1682,7 @@ FINUFFT_EXPORT int FINUFFT_CDECL spreadinterp(
16801682 Tidy, Barnett 5/20/20. Tidy doc, Barnett 10/22/20.
16811683*/
16821684{
1683- int ier = spreadcheck (N1, N2, N3, M, kx, ky, kz, opts);
1685+ int ier = spreadcheck (N1, N2, N3, opts);
16841686 if (ier) return ier;
16851687 std::vector<BIGINT> sort_indices (M);
16861688 int did_sort = indexSort (sort_indices, N1, N2, N3, M, kx, ky, kz, opts);
@@ -1696,7 +1698,7 @@ template FINUFFT_EXPORT int FINUFFT_CDECL spreadinterp<double>(
16961698 UBIGINT N1, UBIGINT N2, UBIGINT N3, double *data_uniform, UBIGINT M, double *kx,
16971699 double *ky, double *kz, double *data_nonuniform, const finufft_spread_opts &opts);
16981700
1699- static constexpr uint8_t ndims_from_Ns (const UBIGINT N1 , const UBIGINT N2,
1701+ static constexpr uint8_t ndims_from_Ns (const UBIGINT /* N1 */ , const UBIGINT N2,
17001702 const UBIGINT N3)
17011703/* rule for getting number of spreading dimensions from the list of Ns per dim.
17021704 Split out, Barnett 7/26/18
@@ -1705,9 +1707,7 @@ static constexpr uint8_t ndims_from_Ns(const UBIGINT N1, const UBIGINT N2,
17051707 return 1 + (N2 > 1 ) + (N3 > 1 );
17061708}
17071709
1708- template <typename T>
1709- int spreadcheck (UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, T *kx, T *ky, T *kz,
1710- const finufft_spread_opts &opts)
1710+ int spreadcheck (UBIGINT N1, UBIGINT N2, UBIGINT N3, const finufft_spread_opts &opts)
17111711/* This does just the input checking and reporting for the spreader.
17121712 See spreadinterp() for input arguments and meaning of returned value.
17131713 Split out by Melody Shih, Jun 2018. Finiteness chk Barnett 7/30/18.
@@ -1729,11 +1729,6 @@ int spreadcheck(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, T *kx, T *ky, T *
17291729 }
17301730 return 0 ;
17311731}
1732- template int spreadcheck<float >(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, float *kx,
1733- float *ky, float *kz, const finufft_spread_opts &opts);
1734- template int spreadcheck<double >(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M,
1735- double *kx, double *ky, double *kz,
1736- const finufft_spread_opts &opts);
17371732
17381733template <typename T>
17391734int indexSort (std::vector<BIGINT> &sort_indices, UBIGINT N1, UBIGINT N2, UBIGINT N3,
0 commit comments