未验证 提交 491a2643 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1237 from skawu/master

没用使用RT_USING_HEAP宏时,增加一条语句用于消除此警告
...@@ -214,6 +214,9 @@ void rt_application_init(void) ...@@ -214,6 +214,9 @@ void rt_application_init(void)
result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL, result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL,
main_stack, sizeof(main_stack), RT_THREAD_PRIORITY_MAX / 3, 20); main_stack, sizeof(main_stack), RT_THREAD_PRIORITY_MAX / 3, 20);
RT_ASSERT(result == RT_EOK); RT_ASSERT(result == RT_EOK);
/* if not define RT_USING_HEAP, using to eliminate the warning */
(void)result;
#endif #endif
rt_thread_startup(tid); rt_thread_startup(tid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册