mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 17:50:29 +08:00
Merge pull request #2757 from BernardXiong/fix_warning
[kernel] skip warning when disable debug.
This commit is contained in:
commit
849d62dd57
@ -262,8 +262,11 @@ void rt_object_init(struct rt_object *object,
|
|||||||
struct rt_object *obj;
|
struct rt_object *obj;
|
||||||
|
|
||||||
obj = rt_list_entry(node, struct rt_object, list);
|
obj = rt_list_entry(node, struct rt_object, list);
|
||||||
|
if (obj) /* skip warning when disable debug */
|
||||||
|
{
|
||||||
RT_ASSERT(obj != object);
|
RT_ASSERT(obj != object);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* leave critical */
|
/* leave critical */
|
||||||
rt_exit_critical();
|
rt_exit_critical();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user