From 2357842f596de859a54e8246c82c01a78e1a115c Mon Sep 17 00:00:00 2001 From: skawu Date: Wed, 28 Feb 2018 22:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E7=94=A8=E4=BD=BF=E7=94=A8RT=5FUSING?= =?UTF-8?q?=5FHEAP=E5=AE=8F=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E6=9D=A1=E8=AF=AD=E5=8F=A5=E7=94=A8=E4=BA=8E=E6=B6=88=E9=99=A4?= =?UTF-8?q?=E6=AD=A4=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没用使用RT_USING_HEAP宏时,components.c文件第211行会报警告,增加一条语句用于消除此警告(使用四个空格代替TAB) --- src/components.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components.c b/src/components.c index 6d9f19742..a73efa37b 100644 --- a/src/components.c +++ b/src/components.c @@ -215,8 +215,8 @@ void rt_application_init(void) 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; + /* if not define RT_USING_HEAP, using to eliminate the warning */ + (void)result; #endif rt_thread_startup(tid); -- GitLab