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:
Xiang Xiao 2020-01-02 20:09:50 +08:00
parent 73e1696e8b
commit 857158451b
263 changed files with 1038 additions and 1047 deletions

View file

@ -217,15 +217,15 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv,
* be set appropriately).
*/
(void)posix_spawn_file_actions_destroy(&file_actions);
(void)posix_spawnattr_destroy(&attr);
posix_spawn_file_actions_destroy(&file_actions);
posix_spawnattr_destroy(&attr);
return pid;
errout_with_actions:
(void)posix_spawn_file_actions_destroy(&file_actions);
posix_spawn_file_actions_destroy(&file_actions);
errout_with_attrs:
(void)posix_spawnattr_destroy(&attr);
posix_spawnattr_destroy(&attr);
errout_with_errno:
set_errno(ret);