1
0
Fork 0
forked from nuttx/nuttx-update

Suppress "'noreturn' function does return" warnings

up_pthread_start and up_task_start.
This commit is contained in:
YAMAMOTO Takashi 2020-02-25 15:17:15 +09:00 committed by Xiang Xiao
parent f01953d364
commit d52628979a
6 changed files with 12 additions and 0 deletions

View file

@ -80,6 +80,8 @@ void up_pthread_start(pthread_startroutine_t entrypt, pthread_addr_t arg)
/* Let sys_call2() do all of the work */
sys_call2(SYS_pthread_start, (uintptr_t)entrypt, (uintptr_t)arg);
PANIC();
}
#endif /* (CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL) && !CONFIG_DISABLE_PTHREAD */

View file

@ -80,6 +80,8 @@ void up_task_start(main_t taskentry, int argc, FAR char *argv[])
sys_call3(SYS_task_start, (uintptr_t)taskentry, (uintptr_t)argc,
(uintptr_t)argv);
PANIC();
}
#endif /* CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL */

View file

@ -82,6 +82,8 @@ void up_pthread_start(pthread_startroutine_t entrypt, pthread_addr_t arg)
sinfo("entry %p arg %p\n", entrypt, arg);
sys_call2(SYS_pthread_start, (uintptr_t)entrypt, (uintptr_t)arg);
PANIC();
}
#endif /* (CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL) && !CONFIG_DISABLE_PTHREAD */

View file

@ -82,6 +82,8 @@ void up_task_start(main_t taskentry, int argc, FAR char *argv[])
sys_call3(SYS_task_start, (uintptr_t)taskentry, (uintptr_t)argc,
(uintptr_t)argv);
PANIC();
}
#endif /* CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL */

View file

@ -65,6 +65,8 @@ void up_pthread_start(pthread_startroutine_t entrypt, pthread_addr_t arg)
/* Let sys_call2() do all of the work */
sys_call2(SYS_pthread_start, (uintptr_t)entrypt, (uintptr_t)arg);
PANIC();
}
#endif /* (CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL) && !CONFIG_DISABLE_PTHREAD */

View file

@ -65,6 +65,8 @@ void up_task_start(main_t taskentry, int argc, FAR char *argv[])
sys_call3(SYS_task_start, (uintptr_t)taskentry, (uintptr_t)argc,
(uintptr_t)argv);
PANIC();
}
#endif /* CONFIG_BUILD_PROTECTED || CONFIG_BUILD_KERNEL */