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
|
@ -30,6 +30,7 @@ rcl_lifecycle_state_machine_t
|
|||
rcl_lifecycle_get_zero_initialized_state_machine();
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_ret_t
|
||||
rcl_lifecycle_state_machine_init(
|
||||
rcl_lifecycle_state_machine_t * state_machine,
|
||||
|
@ -42,17 +43,20 @@ rcl_lifecycle_state_machine_init(
|
|||
bool default_states);
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_ret_t
|
||||
rcl_lifecycle_state_machine_fini(
|
||||
rcl_lifecycle_state_machine_t * state_machine,
|
||||
rcl_node_t * node_handle);
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_ret_t
|
||||
rcl_lifecycle_state_machine_is_initialized(
|
||||
const rcl_lifecycle_state_machine_t * state_machine);
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
const rcl_lifecycle_transition_t *
|
||||
rcl_lifecycle_is_valid_callback_transition(
|
||||
rcl_lifecycle_state_machine_t * state_machine,
|
||||
|
@ -70,6 +74,7 @@ rcl_lifecycle_is_valid_callback_transition(
|
|||
* callbacks such as RCL_LIFECYCLE_RET_OK et. al.
|
||||
*/
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_ret_t
|
||||
rcl_lifecycle_trigger_transition(
|
||||
rcl_lifecycle_state_machine_t * state_machine,
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#ifndef RCL_LIFECYCLE__TRANSITION_MAP_H_
|
||||
#define RCL_LIFECYCLE__TRANSITION_MAP_H_
|
||||
|
||||
#include <rcl/macros.h>
|
||||
#include <rcl_lifecycle/data_types.h>
|
||||
|
||||
#if __cplusplus
|
||||
|
@ -37,12 +38,14 @@ rcl_lifecycle_register_transition(
|
|||
rcl_lifecycle_ret_t key);
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_lifecycle_state_t *
|
||||
rcl_lifecycle_get_state(
|
||||
rcl_lifecycle_transition_map_t * transition_map,
|
||||
unsigned int state_id);
|
||||
|
||||
RCL_LIFECYCLE_PUBLIC
|
||||
RCL_WARN_UNUSED
|
||||
rcl_lifecycle_transition_t *
|
||||
rcl_lifecycle_get_transitions(
|
||||
rcl_lifecycle_transition_map_t * transition_map,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue