[kernel] skip warning when disable debug.
@@ -262,8 +262,11 @@ void rt_object_init(struct rt_object *object,
struct rt_object *obj;
obj = rt_list_entry(node, struct rt_object, list);
+ if (obj) /* skip warning when disable debug */
+ {
RT_ASSERT(obj != object);
}
+ }
/* leave critical */
rt_exit_critical();
