remove compiler warnings
This commit is contained in:
parent
2dd6fb87d1
commit
fba4b43c32
1 changed files with 7 additions and 4 deletions
|
@ -84,12 +84,15 @@ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg,
|
|||
int stacksize, int prio)
|
||||
{
|
||||
int err;
|
||||
sys_thread_t tmp;
|
||||
sys_thread_t id;
|
||||
|
||||
err = create_kernel_task(&tmp, thread, arg, prio);
|
||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_thread_new: create_kernel_task %d, id = %u\n", err, tmp));
|
||||
LWIP_UNUSED_ARG(name);
|
||||
LWIP_UNUSED_ARG(stacksize);
|
||||
|
||||
return tmp;
|
||||
err = create_kernel_task(&id, (entry_point_t)thread, arg, prio);
|
||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_thread_new: create_kernel_task %d, id = %u\n", err, id));
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
/* sys_sem_free(): destroy's given semaphore
|
||||
|
|
Loading…
Add table
Reference in a new issue