mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00: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:
parent
73e1696e8b
commit
857158451b
263 changed files with 1038 additions and 1047 deletions
|
|
@ -187,8 +187,8 @@ int main(int argc, FAR char *argv[])
|
|||
act.sa_sigaction = timer_sighandler;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
||||
(void)sigfillset(&act.sa_mask);
|
||||
(void)sigdelset(&act.sa_mask, CONFIG_EXAMPLES_TIMER_SIGNO);
|
||||
sigfillset(&act.sa_mask);
|
||||
sigdelset(&act.sa_mask, CONFIG_EXAMPLES_TIMER_SIGNO);
|
||||
|
||||
ret = sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
if (ret != OK)
|
||||
|
|
@ -258,7 +258,7 @@ int main(int argc, FAR char *argv[])
|
|||
/* Detach the signal handler */
|
||||
|
||||
act.sa_handler = SIG_DFL;
|
||||
(void)sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
|
||||
/* Show the timer status before starting */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue