summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-02-28 23:44:21 +0800
committerGitHub <[email protected]>2018-02-28 23:44:21 +0800
commit491a264358f5a56bf80d44a19d779fe06e364ad2 (patch)
treef42ca101270436fe30efc531800c9f297315cb05 /src
parent90ee8661d966827933defef487beb4c4bd34c070 (diff)
parent2357842f596de859a54e8246c82c01a78e1a115c (diff)
Merge pull request #1237 from skawu/master
没用使用RT_USING_HEAP宏时,增加一条语句用于消除此警告
Diffstat (limited to 'src')
-rw-r--r--src/components.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components.c b/src/components.c
index d4982b13c9..a73efa37b1 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);