diff options
| author | Bernard Xiong <[email protected]> | 2019-07-28 09:51:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-28 09:51:25 +0800 |
| commit | 388a293a277e98e1f499be4626f47b6d455c9aba (patch) | |
| tree | 2aca035e7e1f2a195e5cf0cd58e075eaf99e3b0c /src | |
| parent | 6c15b1856f784d93a271c1f28025a7ce3d19967b (diff) | |
| parent | 85a9f5add9fd54b3917cfca2a8555c6525df0538 (diff) | |
Merge pull request #2902 from tyustli/fix_cpp
fix bug in Thread.cpp/Thread.h/components.c files
Diffstat (limited to 'src')
| -rw-r--r-- | src/components.c | 3 |
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 |
