[bugfix]: writing to an object with no trivial copy-assignment [wclass-memaccess].
This commit is contained in:
parent
7bc0c8b3d8
commit
9e8966483f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Reference in a new issue