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

fix compiler warning in clang #345

Merged
merged 2 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion rcl/src/rcl/guard_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ typedef struct rcl_guard_condition_impl_t
rcl_guard_condition_t
rcl_get_zero_initialized_guard_condition()
{
static rcl_guard_condition_t null_guard_condition = {0};
static rcl_guard_condition_t null_guard_condition = {
.context = 0,
.impl = 0
};
return null_guard_condition;
}

Expand Down
5 changes: 4 additions & 1 deletion rcl/src/rcl/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ const char * rcl_get_secure_root(
rcl_node_t
rcl_get_zero_initialized_node()
{
static rcl_node_t null_node = {0};
static rcl_node_t null_node = {
.context = 0,
.impl = 0
};
return null_node;
}

Expand Down