summaryrefslogtreecommitdiff
path: root/src/components.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-05-18 18:09:16 +0800
committerBernard Xiong <[email protected]>2015-05-18 18:09:16 +0800
commit2d27251d2197d6669ad28a92852d51d44d799d92 (patch)
tree069eba0eb78199c7662c3a9e6e43886149c55c2d /src/components.c
parent450acd34548ba701387ec8448b1b37878a52a882 (diff)
[Kernel] fix the Keil MDK compiling warning.
Diffstat (limited to 'src/components.c')
-rw-r--r--src/components.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components.c b/src/components.c
index 3ffe09c882..783ae37ab1 100644
--- a/src/components.c
+++ b/src/components.c
@@ -29,6 +29,7 @@
* in some IDEs.
*/
+#include <rthw.h>
#include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
@@ -130,6 +131,8 @@ void rt_hw_board_init(void);
#ifdef __CC_ARM
extern int $Super$$main(void);
+int rtthread_startup(void);
+
/* re-define main function */
int $Sub$$main(void)
{
@@ -215,7 +218,7 @@ int rtthread_startup(void)
rt_system_scheduler_start();
/* never reach here */
- return ;
+ return 0;
}
#endif
#endif