From 0fc4a3f2898eac0cf26e9283936215eaab747a31 Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Wed, 22 Apr 2020 19:40:16 -0300 Subject: [PATCH] Fix build warnings (#162) Signed-off-by: Ivan Santiago Paunovic --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index 66d859e0..a9b49543 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -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(impl->common.sub->data); - auto gc = static_cast(impl->common.listener_thread_gc->data); + const CddsSubscription * sub = static_cast(impl->common.sub->data); + const CddsGuardCondition * gc = + static_cast(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 */