diff options
| author | 714826565 <[email protected]> | 2018-02-28 16:04:30 +0800 |
|---|---|---|
| committer | 714826565 <[email protected]> | 2018-02-28 16:04:30 +0800 |
| commit | d4d22d34d33ff55b8c11e1d058848ac2eaa6c9ec (patch) | |
| tree | 95dfac9bec912ddd11a101223a8eaa61a013a941 /src | |
| parent | 90ee8661d966827933defef487beb4c4bd34c070 (diff) | |
没用使用RT_USING_HEAP宏时,components.c文件第211行会报警告,增加一条语句用于消除此警告
Diffstat (limited to 'src')
| -rw-r--r-- | src/components.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components.c b/src/components.c index d4982b13c9..6d9f19742f 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); |
