Skip to content

Commit

Permalink
Refs 11562. Avoid unused var warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed May 18, 2021
1 parent 8b042d6 commit 36f1c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cpp/statistics/rtps/messages/RTPSStatisticsMessages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ inline uint32_t get_statistics_message_pos(
const eprosima::fastrtps::rtps::octet* send_buffer,
uint32_t send_buffer_size)
{
// Only used on an assert
static_cast<void>(send_buffer);

// Message should contain RTPS header and statistic submessage
assert(statistics_submessage_length + RTPSMESSAGE_HEADER_SIZE <= send_buffer_size);

Expand Down

0 comments on commit 36f1c16

Please sign in to comment.