summaryrefslogtreecommitdiff
path: root/src/components.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.c')
-rw-r--r--src/components.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components.c b/src/components.c
index 3b9f131eaf..b9fc4c178c 100644
--- a/src/components.c
+++ b/src/components.c
@@ -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