Browse Source

没用使用RT_USING_HEAP宏时,增加一条语句用于消除此警告

没用使用RT_USING_HEAP宏时,components.c文件第211行会报警告,增加一条语句用于消除此警告(使用四个空格代替TAB)
skawu 7 years ago
parent
commit
2357842f59
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components.c

+ 2 - 2
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);