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