Skip to content

Commit

Permalink
Quiet compiler warning in Release mode. (#730)
Browse files Browse the repository at this point in the history
In particular, when building in release mode the assert
is compiled out, so 'identifier' is never used.  Just
quiet this warning.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Nov 6, 2023
1 parent d518e06 commit eadeb25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ __rmw_destroy_node(
const char * identifier,
rmw_node_t * node)
{
(void)identifier;
assert(node->implementation_identifier == identifier);
rmw_ret_t ret = RMW_RET_OK;
auto common_context = static_cast<rmw_dds_common::Context *>(node->context->impl->common);
Expand Down

0 comments on commit eadeb25

Please sign in to comment.