Fix build warnings (#162)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
Ivan Santiago Paunovic 2020-04-22 19:40:16 -03:00 committed by GitHub
parent 8a1d3fc092
commit 0fc4a3f289
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 */