Skip to content

Commit

Permalink
Removed warnings - strict-prototypes (#365) (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit aa39521)

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
mergify[bot] and ahcorde authored Apr 24, 2024
1 parent 9b3d9d0 commit 5efea32
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions rmw/include/rmw/security_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ typedef struct RMW_PUBLIC_TYPE rmw_security_options_s
/// Get zero initialized security options.
RMW_PUBLIC
rmw_security_options_t
rmw_get_zero_initialized_security_options();
rmw_get_zero_initialized_security_options(void);

/// Get default initialized security options.
RMW_PUBLIC
rmw_security_options_t
rmw_get_default_security_options();
rmw_get_default_security_options(void);

/// Copy the given security options.
/**
Expand Down
2 changes: 1 addition & 1 deletion rmw/include/rmw/subscription_content_filter_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct RMW_PUBLIC_TYPE rmw_subscription_content_filter_options_s
/// Get zero initialized content filter options.
RMW_PUBLIC
rmw_subscription_content_filter_options_t
rmw_get_zero_initialized_content_filter_options();
rmw_get_zero_initialized_content_filter_options(void);


/// Initialize the given content filter options.
Expand Down
14 changes: 7 additions & 7 deletions rmw/src/allocators.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rmw_free(void * pointer)
}

rmw_node_t *
rmw_node_allocate()
rmw_node_allocate(void)
{
// Could be overridden with custom (maybe static) node struct allocator
return (rmw_node_t *)rmw_allocate(sizeof(rmw_node_t));
Expand All @@ -56,7 +56,7 @@ rmw_node_free(rmw_node_t * node)
}

rmw_publisher_t *
rmw_publisher_allocate()
rmw_publisher_allocate(void)
{
// Could be overridden with custom (maybe static) publisher struct allocator
return (rmw_publisher_t *)rmw_allocate(sizeof(rmw_publisher_t));
Expand All @@ -70,7 +70,7 @@ rmw_publisher_free(rmw_publisher_t * publisher)
}

rmw_subscription_t *
rmw_subscription_allocate()
rmw_subscription_allocate(void)
{
// Could be overridden with custom (maybe static) subscription struct allocator
return (rmw_subscription_t *)rmw_allocate(sizeof(rmw_subscription_t));
Expand All @@ -84,7 +84,7 @@ rmw_subscription_free(rmw_subscription_t * subscription)
}

rmw_guard_condition_t *
rmw_guard_condition_allocate()
rmw_guard_condition_allocate(void)
{
// Could be overridden with custom (maybe static) guard_condition
// struct allocator
Expand All @@ -99,7 +99,7 @@ rmw_guard_condition_free(rmw_guard_condition_t * guard_condition)
}

rmw_client_t *
rmw_client_allocate()
rmw_client_allocate(void)
{
// Could be overridden with custom (maybe static) client struct allocator
return (rmw_client_t *)rmw_allocate(sizeof(rmw_client_t));
Expand All @@ -113,7 +113,7 @@ rmw_client_free(rmw_client_t * client)
}

rmw_service_t *
rmw_service_allocate()
rmw_service_allocate(void)
{
// Could be overridden with custom (maybe static) client struct allocator
return (rmw_service_t *)rmw_allocate(sizeof(rmw_service_t));
Expand All @@ -127,7 +127,7 @@ rmw_service_free(rmw_service_t * service)
}

rmw_wait_set_t *
rmw_wait_set_allocate()
rmw_wait_set_allocate(void)
{
// Could be overridden with custom (maybe static) client struct allocator
return (rmw_wait_set_t *)rmw_allocate(sizeof(rmw_wait_set_t));
Expand Down
4 changes: 2 additions & 2 deletions rmw/src/security_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
#include "rmw/security_options.h"

rmw_security_options_t
rmw_get_zero_initialized_security_options()
rmw_get_zero_initialized_security_options(void)
{
rmw_security_options_t zero_initialized_options = {0, NULL};
return zero_initialized_options;
}

rmw_security_options_t
rmw_get_default_security_options()
rmw_get_default_security_options(void)
{
rmw_security_options_t default_options = {
RMW_SECURITY_ENFORCEMENT_PERMISSIVE,
Expand Down
2 changes: 1 addition & 1 deletion rmw/src/subscription_content_filter_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "rmw/subscription_content_filter_options.h"

rmw_subscription_content_filter_options_t
rmw_get_zero_initialized_content_filter_options()
rmw_get_zero_initialized_content_filter_options(void)
{
return (const rmw_subscription_content_filter_options_t) {
.filter_expression = NULL,
Expand Down

0 comments on commit 5efea32

Please sign in to comment.