Skip to content

Commit

Permalink
Fix build warnings (ros2#162)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
  • Loading branch information
ivanpauno authored Apr 22, 2020
1 parent 8a1d3fc commit 0fc4a3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,9 @@ static void handle_DCPSPublication(dds_entity_t reader, void * arg)

static void discovery_thread(rmw_context_impl_t * impl)
{
auto sub = static_cast<CddsSubscription const * const>(impl->common.sub->data);
auto gc = static_cast<CddsGuardCondition const * const>(impl->common.listener_thread_gc->data);
const CddsSubscription * sub = static_cast<const CddsSubscription *>(impl->common.sub->data);
const CddsGuardCondition * gc =
static_cast<const CddsGuardCondition *>(impl->common.listener_thread_gc->data);
dds_entity_t ws;
/* deleting ppant will delete waitset as well, so there is no real need to delete
the waitset here on error, but it is more hygienic */
Expand Down

0 comments on commit 0fc4a3f

Please sign in to comment.