mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast 2.Replace void cast for variable with UNUSED macro Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -85,12 +85,12 @@ void nsh_initialize(void)
|
||||
#if defined(CONFIG_NSH_READLINE) && defined(CONFIG_READLINE_TABCOMPLETION)
|
||||
/* Configure the NSH prompt */
|
||||
|
||||
(void)readline_prompt(g_nshprompt);
|
||||
readline_prompt(g_nshprompt);
|
||||
|
||||
#ifdef CONFIG_READLINE_HAVE_EXTMATCH
|
||||
/* Set up for tab completion on NSH commands */
|
||||
|
||||
(void)readline_extmatch(&g_nsh_extmatch);
|
||||
readline_extmatch(&g_nsh_extmatch);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -101,12 +101,12 @@ void nsh_initialize(void)
|
||||
#ifdef CONFIG_NSH_ARCHINIT
|
||||
/* Perform architecture-specific initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_INIT, 0);
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
/* Bring up the network */
|
||||
|
||||
(void)netinit_bringup();
|
||||
netinit_bringup();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user