Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed warnings - strict-prototypes #155

Merged
merged 4 commits into from
Apr 24, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rosidl_typesupport_c/test/test_type_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
// function still needs to be defined separately. Windows has gotten picky with its compiler
// warnings recently.
#if defined _WIN32 || defined __CYGWIN__
__declspec(dllexport) const rosidl_message_type_support_t * test_message_type_support();
__declspec(dllexport) const rosidl_service_type_support_t * test_service_type_support();
__declspec(dllexport) const rosidl_message_type_support_t * test_message_type_support(void);
__declspec(dllexport) const rosidl_service_type_support_t * test_service_type_support(void);
#else
const rosidl_message_type_support_t * test_message_type_support();
const rosidl_service_type_support_t * test_service_type_support();
const rosidl_message_type_support_t * test_message_type_support(void);
const rosidl_service_type_support_t * test_service_type_support(void);
#endif

static const rosidl_message_type_support_t message_type_support = {
Expand All @@ -37,6 +37,6 @@ static const rosidl_service_type_support_t service_type_support = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};

const rosidl_message_type_support_t * test_message_type_support() {return &message_type_support;}
const rosidl_message_type_support_t * test_message_type_support(void) {return &message_type_support;}

const rosidl_service_type_support_t * test_service_type_support() {return &service_type_support;}
const rosidl_service_type_support_t * test_service_type_support(void) {return &service_type_support;}