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

View File

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