Skip to content

Commit 41fa9ce

Browse files
authored
Merge pull request #2272 from serge-sans-paille/fix/minor-warnings
Fix minor warnings detected by clang
2 parents 6bd8351 + 76e91c0 commit 41fa9ce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

include/xtensor/xchunked_array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ namespace xt
310310
}
311311

312312
template <class S1, class S2>
313-
static void resize(E& chunks, const S1& container_shape, const S2& chunk_shape, layout_type chunk_memory_layout)
313+
static void resize(E& chunks, const S1& container_shape, const S2& /*chunk_shape*/, layout_type /*chunk_memory_layout*/)
314314
{
315315
chunks.resize(container_shape);
316316
}

test/test_xcomplex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ namespace xt
313313
{
314314
using complex_type = xtl::xcomplex<double>;
315315
xt::xarray<complex_type> a = xt::ones<complex_type>(std::vector<size_t>(3,7));
316-
316+
317317
auto simd_loaded = a.template load_simd<xt_simd::aligned_mode, complex_type, xt_simd::simd_traits<complex_type>::size>(0);
318+
(void)simd_loaded;
318319
}
319320
}

0 commit comments

Comments
 (0)