Merge pull request #1237 from skawu/master

没用使用RT_USING_HEAP宏时,增加一条语句用于消除此警告
This commit is contained in:
Bernard Xiong 2018-02-28 23:44:21 +08:00 committed by GitHub
commit 491a264358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);