Skip to content

Commit

Permalink
Merge pull request #53 from ros2/fix-prototype-warnings
Browse files Browse the repository at this point in the history
Fix "function declaration isn't a prototype" warnings
  • Loading branch information
esteve committed Feb 4, 2016
2 parents 1600617 + bded09e commit c87cf06
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions rmw/include/rmw/allocators.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,55 @@ rmw_free(void * pointer);

RMW_PUBLIC
rmw_node_t *
rmw_node_allocate();
rmw_node_allocate(void);

RMW_PUBLIC
void
rmw_node_free(rmw_node_t * node);

RMW_PUBLIC
rmw_publisher_t *
rmw_publisher_allocate();
rmw_publisher_allocate(void);

RMW_PUBLIC
void
rmw_publisher_free(rmw_publisher_t * publisher);

RMW_PUBLIC
rmw_subscription_t *
rmw_subscription_allocate();
rmw_subscription_allocate(void);

RMW_PUBLIC
void
rmw_subscription_free(rmw_subscription_t * subscription);

RMW_PUBLIC
rmw_guard_condition_t *
rmw_guard_condition_allocate();
rmw_guard_condition_allocate(void);

RMW_PUBLIC
void
rmw_guard_condition_free(rmw_guard_condition_t * guard_condition);

RMW_PUBLIC
rmw_client_t *
rmw_client_allocate();
rmw_client_allocate(void);

RMW_PUBLIC
void
rmw_client_free(rmw_client_t * client);

RMW_PUBLIC
rmw_service_t *
rmw_service_allocate();
rmw_service_allocate(void);

RMW_PUBLIC
void
rmw_service_free(rmw_service_t * service);

RMW_PUBLIC
rmw_waitset_t *
rmw_waitset_allocate();
rmw_waitset_allocate(void);

RMW_PUBLIC
void
Expand Down
10 changes: 5 additions & 5 deletions rmw/include/rmw/error_handling.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ rmw_set_error_state(const char * error_msg, const char * file, size_t line_numbe
/// Return true if the error has been set and has not been reset since, otherwise false.
RMW_PUBLIC
bool
rmw_error_is_set();
rmw_error_is_set(void);

/// Return a struct with the error message and the file and line number on which is was set.
/**
Expand All @@ -78,7 +78,7 @@ rmw_error_is_set();
*/
RMW_PUBLIC
const rmw_error_state_t *
rmw_get_error_state();
rmw_get_error_state(void);

/// Return the error message followed by ', at <file>:<line>' if set, else NULL.
/**
Expand All @@ -89,7 +89,7 @@ rmw_get_error_state();
*/
RMW_PUBLIC
const char *
rmw_get_error_string();
rmw_get_error_string(void);

/// Return the error message followed by ', at <file>:<line>' if set, else "error not set".
/**
Expand All @@ -102,12 +102,12 @@ rmw_get_error_string();
*/
RMW_PUBLIC
const char *
rmw_get_error_string_safe();
rmw_get_error_string_safe(void);

/// Resets the error state by clearing any previously set error state.
RMW_PUBLIC
void
rmw_reset_error();
rmw_reset_error(void);

#if __cplusplus
}
Expand Down
6 changes: 3 additions & 3 deletions rmw/include/rmw/rmw.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ extern "C"
RMW_PUBLIC
RMW_WARN_UNUSED
const char *
rmw_get_implementation_identifier();
rmw_get_implementation_identifier(void);

RMW_PUBLIC
RMW_WARN_UNUSED
rmw_ret_t
rmw_init();
rmw_init(void);

RMW_PUBLIC
RMW_WARN_UNUSED
Expand Down Expand Up @@ -170,7 +170,7 @@ rmw_send_response(
RMW_PUBLIC
RMW_WARN_UNUSED
rmw_guard_condition_t *
rmw_create_guard_condition();
rmw_create_guard_condition(void);

RMW_PUBLIC
RMW_WARN_UNUSED
Expand Down

0 comments on commit c87cf06

Please sign in to comment.