Skip to content

Commit

Permalink
Fix build warning in Ubuntu Focal
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Jan 31, 2020
1 parent 3adf852 commit 7ca7ad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ __rmw_send_response(
assert(info);

eprosima::fastrtps::rtps::WriteParams wparams;
memcpy(&wparams.related_sample_identity().writer_guid(), request_header->writer_guid,
memcpy(
static_cast<void *>(&wparams.related_sample_identity().writer_guid()),
request_header->writer_guid,
sizeof(eprosima::fastrtps::rtps::GUID_t));
wparams.related_sample_identity().sequence_number().high =
(int32_t)((request_header->sequence_number & 0xFFFFFFFF00000000) >> 32);
Expand Down

0 comments on commit 7ca7ad3

Please sign in to comment.