diff --git a/src/components.c b/src/components.c index d4982b13c90cd27a19073104899bc51b173e7bae..6d9f19742f4bdbab32b83d3c03bbfea9c4397b63 100644 --- a/src/components.c +++ b/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);