mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +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:
@@ -87,7 +87,7 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
#ifdef CONFIG_NSH_ROMFSETC
|
||||
/* Execute the start-up script */
|
||||
|
||||
(void)nsh_initscript(&pstate->cn_vtbl);
|
||||
nsh_initscript(&pstate->cn_vtbl);
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLESCRIPT
|
||||
/* Reset the option flags */
|
||||
@@ -105,7 +105,7 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_FINALINIT, 0);
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#endif
|
||||
|
||||
/* Execute the session */
|
||||
|
Reference in New Issue
Block a user