diff options
| author | Meco Man <[email protected]> | 2024-02-19 01:35:50 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-02-19 01:56:21 -0500 |
| commit | 2748a6ada432152887ed2cad059e43e2a130793c (patch) | |
| tree | 6679e6465f607f72f6519824f13a1bbc8c87c5fb /src/components.c | |
| parent | 4cbc1a41f6458c58611aa96b893fbac597cb3384 (diff) | |
[kernel] fix some strict compiling warnings
Diffstat (limited to 'src/components.c')
| -rw-r--r-- | src/components.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components.c b/src/components.c index 8d434f073b..d1adac181b 100644 --- a/src/components.c +++ b/src/components.c @@ -178,9 +178,10 @@ struct rt_thread main_thread; * * @param parameter is the arg of the thread. */ -void main_thread_entry(void *parameter) +static void main_thread_entry(void *parameter) { extern int main(void); + RT_UNUSED(parameter); #ifdef RT_USING_COMPONENTS_INIT /* RT-Thread components initialization */ @@ -198,7 +199,7 @@ void main_thread_entry(void *parameter) } #elif defined(__ICCARM__) || defined(__GNUC__) || defined(__TASKING__) || defined(__TI_COMPILER_VERSION__) main(); -#endif +#endif /* __ARMCC_VERSION */ } /** |
