mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[kernel] skip warning when disable debug.
This commit is contained in:
1 parent
c8f0ae3f11
commit
3463a756d9
1 file changed
+4
-1
+4
-1
@@ -262,7 +262,10 @@ void rt_object_init(struct rt_object *object,
|
||||
struct rt_object *obj;
|
||||
|
||||
obj = rt_list_entry(node, struct rt_object, list);
|
||||
RT_ASSERT(obj != object);
|
||||
if (obj) /* skip warning when disable debug */
|
||||
{
|
||||
RT_ASSERT(obj != object);
|
||||
}
|
||||
}
|
||||
/* leave critical */
|
||||
rt_exit_critical();
|
||||
|
||||
Reference in new issue
Block a user