fix unknownEvaluationOrder warning
This commit is contained in:
parent
6a1ca6ef6d
commit
c7362e3163
1 changed files with 6 additions and 7 deletions
|
@ -61,13 +61,12 @@ rcl_timer_init(
|
||||||
if (now_ret != RCL_RET_OK) {
|
if (now_ret != RCL_RET_OK) {
|
||||||
return now_ret; // rcl error state should already be set.
|
return now_ret; // rcl error state should already be set.
|
||||||
}
|
}
|
||||||
rcl_timer_impl_t impl = {
|
rcl_timer_impl_t impl;
|
||||||
.callback = ATOMIC_VAR_INIT((uintptr_t)callback),
|
impl.callback = ATOMIC_VAR_INIT((uintptr_t)callback);
|
||||||
.period = ATOMIC_VAR_INIT(period),
|
impl.period = ATOMIC_VAR_INIT(period);
|
||||||
.last_call_time = ATOMIC_VAR_INIT(now_steady),
|
impl.last_call_time = ATOMIC_VAR_INIT(now_steady);
|
||||||
.canceled = ATOMIC_VAR_INIT(false),
|
impl.canceled = ATOMIC_VAR_INIT(false);
|
||||||
.allocator = allocator,
|
impl.allocator = allocator;
|
||||||
};
|
|
||||||
RCL_CHECK_FOR_NULL_WITH_MSG(
|
RCL_CHECK_FOR_NULL_WITH_MSG(
|
||||||
allocator.allocate, "allocate not set", return RCL_RET_INVALID_ARGUMENT);
|
allocator.allocate, "allocate not set", return RCL_RET_INVALID_ARGUMENT);
|
||||||
RCL_CHECK_FOR_NULL_WITH_MSG(
|
RCL_CHECK_FOR_NULL_WITH_MSG(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue