diff --git a/bsp/efm32/copy_this_file_shell.c b/bsp/efm32/copy_this_file_shell.c index 24c2644e1e4..45ce3cb45a3 100644 --- a/bsp/efm32/copy_this_file_shell.c +++ b/bsp/efm32/copy_this_file_shell.c @@ -88,7 +88,7 @@ int isprint(unsigned char ch) #if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR) #include -const char* finsh_get_prompt() +const char* finsh_get_prompt(void) { #define _PROMPT "finsh " static char finsh_prompt[RT_CONSOLEBUF_SIZE + 1] = {_PROMPT}; diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 852d3e7ac77..61f0b9562e6 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -101,7 +101,7 @@ int finsh_set_prompt(const char * prompt) #include #endif /* RT_USING_DFS */ -const char *finsh_get_prompt() +const char *finsh_get_prompt(void) { #define _MSH_PROMPT "msh " #define _PROMPT "finsh "