forked from nuttx/nuttx-update
Suppress "'noreturn' function does return" warnings
up_pthread_start and up_task_start.
This commit is contained in:
parent
f01953d364
commit
d52628979a
6 changed files with 12 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue