From 13b99c015692c2bcbc0b5be4e4ab26da392bb608 Mon Sep 17 00:00:00 2001 From: Brian Marchi Date: Fri, 18 Oct 2019 19:30:08 -0300 Subject: [PATCH] Add localhost parameter to create node function (#288) * Add localhost parameter to create node function Signed-off-by: Brian Ezequiel Marchi * Cast parameter to void to avoid compilation warning Signed-off-by: Brian Ezequiel Marchi --- rmw_opensplice_cpp/src/rmw_node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rmw_opensplice_cpp/src/rmw_node.cpp b/rmw_opensplice_cpp/src/rmw_node.cpp index 6add92a0..7865958a 100644 --- a/rmw_opensplice_cpp/src/rmw_node.cpp +++ b/rmw_opensplice_cpp/src/rmw_node.cpp @@ -46,8 +46,9 @@ rmw_node_t * rmw_create_node( rmw_context_t * context, const char * name, const char * namespace_, size_t domain_id, - const rmw_node_security_options_t * security_options) + const rmw_node_security_options_t * security_options, bool localhost_only) { + static_cast(localhost_only); RCUTILS_CHECK_ARGUMENT_FOR_NULL(context, nullptr); RMW_CHECK_TYPE_IDENTIFIERS_MATCH( init context,