浏览代码

没用使用RT_USING_HEAP宏时,components.c文件第211行会报警告,增加一条语句用于消除此警告

714826565 7 年之前
父节点
当前提交
d4d22d34d3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/components.c

+ 3 - 0
src/components.c

@@ -214,6 +214,9 @@ void rt_application_init(void)
     result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL,
                             main_stack, sizeof(main_stack), RT_THREAD_PRIORITY_MAX / 3, 20);
     RT_ASSERT(result == RT_EOK);
+	
+	/* if not define RT_USING_HEAP, using to eliminate the warning */
+	(void)result;
 #endif
 
     rt_thread_startup(tid);