Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Apr 12, 2021
1 parent 6feb7cc commit 6c907ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ __rmw_publish_loaned_message(
const void * ros_message,
rmw_publisher_allocation_t * allocation)
{
static_cast<void>(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);
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6c907ac

Please sign in to comment.