avoid warnings

This commit is contained in:
Joachim Schoeberl 2024-05-31 18:19:57 +02:00
parent 1a72309c40
commit 9a2dd3b63e
2 changed files with 4 additions and 2 deletions

View File

@ -729,6 +729,8 @@ namespace ngcore
Archive& operator&(std::tuple<T...> &t) Archive& operator&(std::tuple<T...> &t)
{ {
// call operator& for each element of the tuple // call operator& for each element of the tuple
// std::ignore to avoid MSVC warning
std::ignore =
std::apply([this](auto&... arg) { std::make_tuple(((*this) & arg).IsParallel()...);}, t); std::apply([this](auto&... arg) { std::make_tuple(((*this) & arg).IsParallel()...);}, t);
return *this; return *this;
} }

View File

@ -49,7 +49,7 @@ void gather_strided_array(size_t count, char* data) {
if constexpr (size < stride) { if constexpr (size < stride) {
char* dst = data; char* dst = data;
char* src = data; char* src = data;
for (auto i : Range(count)) { for ( [[maybe_unused]] auto i : Range(count)) {
memcpy(dst, src, size); memcpy(dst, src, size);
dst += size; dst += size;
src += stride; src += stride;