mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
avoid warnings
This commit is contained in:
parent
1a72309c40
commit
9a2dd3b63e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user