diff --git a/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp b/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp index d4695d419..a6e07a7c7 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp @@ -115,6 +115,7 @@ __rmw_publish_loaned_message( const void * ros_message, rmw_publisher_allocation_t * allocation) { + static_cast(allocation); RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INVALID_ARGUMENT); RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INCORRECT_RMW_IMPLEMENTATION); RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_ERROR); diff --git a/rmw_fastrtps_shared_cpp/src/rmw_take.cpp b/rmw_fastrtps_shared_cpp/src/rmw_take.cpp index 6b75d2bb4..e9cd4be1c 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_take.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_take.cpp @@ -365,7 +365,7 @@ struct GenericSequence : public eprosima::fastdds::dds::LoanableCollection { GenericSequence() = default; - void resize(size_type new_length) override + void resize(size_type /*new_length*/) override { // This kind of collection should only be used with loans throw std::bad_alloc();