fix bug in Thread.cpp/Thread.h/components.c files

This commit is contained in:
tyustli
2019-07-27 17:33:36 +08:00
parent 5180262010
commit 85a9f5add9
3 changed files with 14 additions and 12 deletions
+1 -2
View File
@@ -153,7 +153,6 @@ int __low_level_init(void)
return 0;
}
#elif defined(__GNUC__)
extern int main(void);
/* Add -eentry to arm-none-eabi-gcc argument */
int entry(void)
{
@@ -204,7 +203,7 @@ void rt_application_init(void)
result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL,
main_stack, sizeof(main_stack), RT_MAIN_THREAD_PRIORITY, 20);
RT_ASSERT(result == RT_EOK);
/* if not define RT_USING_HEAP, using to eliminate the warning */
(void)result;
#endif