[bugfix]: writing to an object with no trivial copy-assignment [wclass-memaccess].

This commit is contained in:
Danial Khazaei 2019-07-08 19:08:47 +04:30
parent 7bc0c8b3d8
commit 9e8966483f
No known key found for this signature in database
GPG key ID: 8389A6DEEC8D5025
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ receivePointField
outstandingSendRequest_ = -1;
outstandingRecvRequest_ = -1;
memcpy(tf().begin(), receiveBuf_.begin(), tf().byteSize());
memcpy(static_cast<void*>(tf().begin()), receiveBuf_.begin(), tf().byteSize());
}
else
{

View file

@ -107,7 +107,7 @@ void Foam::processorLduInterface::receive
}
else if (commsType == Pstream::nonBlocking)
{
memcpy(f.begin(), receiveBuf_.begin(), f.byteSize());
memcpy(static_cast<void*>(f.begin()), receiveBuf_.begin(), f.byteSize());
}
else
{