Silenced a few more compilation warnings

This commit is contained in:
Benoit Steiner 2015-10-29 16:22:52 -07:00
parent 0974a57910
commit 09ea3a7acd
2 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ struct h_array_reduce<Reducer, T, N, 0>
template<typename Reducer, typename T>
struct h_array_reduce<Reducer, T, 0>
{
constexpr static inline T run(const std::array<T, 0>& arr, T identity)
constexpr static inline T run(const std::array<T, 0>&, T identity)
{
return identity;
}

View File

@ -219,8 +219,8 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
ComplexScalar* pos_j_base_powered = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * (line_len + 1));
if (!is_power_of_two) {
ComplexScalar pos_j_base = ComplexScalar(std::cos(M_PI/line_len), std::sin(M_PI/line_len));
for (int i = 0; i < line_len + 1; ++i) {
pos_j_base_powered[i] = std::pow(pos_j_base, i * i);
for (int j = 0; j < line_len + 1; ++j) {
pos_j_base_powered[j] = std::pow(pos_j_base, j * j);
}
}