Warn unused (#139)
* add unused warning * comply with unused warning * add unused warning * comply with unused warning * remove wrongly modified files * consistent include style
This commit is contained in:
parent
d433ee193c
commit
6fbfb4ee07
8 changed files with 61 additions and 19 deletions
|
@ -165,8 +165,12 @@ rcl_lifecycle_trigger_transition(
|
|||
}
|
||||
state_machine->current_state = transition->goal;
|
||||
if (publish_notification) {
|
||||
rcl_lifecycle_com_interface_publish_notification(
|
||||
rcl_ret_t ret = rcl_lifecycle_com_interface_publish_notification(
|
||||
&state_machine->com_interface, transition->start, state_machine->current_state);
|
||||
if (ret != RCL_RET_OK) {
|
||||
RCL_SET_ERROR_MSG("Could not publish transition", rcl_get_default_allocator());
|
||||
return RCL_RET_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
return RCL_RET_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue