Skip to content

Commit

Permalink
Workaround to fix non-const warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Feb 13, 2018
1 parent 64234ce commit 57b351c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rcl/src/rcl/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ const char * rcl_create_node_logger_name(
}
}
// convert slashes to dot separators
const char * node_logger_name = rcutils_repl_str(node_name_with_ns, "/", ".", allocator);
const char * node_logger_name = rcutils_repl_str(
node_name_with_ns, "/", ".",
(rcl_allocator_t *)allocator); // TODO(dhood): remove need for casting away const
if (NULL == node_logger_name) {
allocator->deallocate((char *)node_name_with_ns, allocator->state);
return NULL;
Expand Down

0 comments on commit 57b351c

Please sign in to comment.