Skip to content
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
1 change: 1 addition & 0 deletions components/lwp/lwp_pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void lwp_pid_lock_take(void)
rc = lwp_mutex_take_safe(&pid_mtx, RT_WAITING_FOREVER, 0);
/* should never failed */
RT_ASSERT(rc == RT_EOK);
RT_UNUSED(rc);
}

void lwp_pid_lock_release(void)
Expand Down
8 changes: 4 additions & 4 deletions src/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ void rt_object_init(struct rt_object *object,
const char *name)
{
rt_base_t level;
#ifdef RT_USING_DEBUG
#ifdef RT_DEBUGING_ASSERT
Comment thread
BernardXiong marked this conversation as resolved.
struct rt_list_node *node = RT_NULL;
#endif
#endif /* RT_DEBUGING_ASSERT */
struct rt_object_information *information;
#ifdef RT_USING_MODULE
struct rt_dlmodule *module = dlmodule_self();
Expand All @@ -358,7 +358,7 @@ void rt_object_init(struct rt_object *object,
information = rt_object_get_information(type);
RT_ASSERT(information != RT_NULL);

#ifdef RT_USING_DEBUG
#ifdef RT_DEBUGING_ASSERT
/* check object type to avoid re-initialization */

/* enter critical */
Expand All @@ -375,7 +375,7 @@ void rt_object_init(struct rt_object *object,
}
/* leave critical */
rt_spin_unlock_irqrestore(&(information->spinlock), level);
#endif
#endif /* RT_DEBUGING_ASSERT */

/* initialize object's parameters */
/* set object type to static */
Expand Down