samples: net: civetweb: Ignore return values
We do not need the return values from various calls to pthread_*() functions. Coverity-CID: 203462 Coverity-CID: 203535 Fixes #18376 Fixes #18377 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
967fbb1656
commit
cac26db2bc
1 changed files with 5 additions and 4 deletions
|
@ -171,11 +171,12 @@ int main(void)
|
||||||
pthread_attr_t civetweb_attr;
|
pthread_attr_t civetweb_attr;
|
||||||
pthread_t civetweb_thread;
|
pthread_t civetweb_thread;
|
||||||
|
|
||||||
pthread_attr_init(&civetweb_attr);
|
(void)pthread_attr_init(&civetweb_attr);
|
||||||
pthread_attr_setstack(&civetweb_attr, &civetweb_stack,
|
(void)pthread_attr_setstack(&civetweb_attr, &civetweb_stack,
|
||||||
CIVETWEB_MAIN_THREAD_STACK_SIZE);
|
CIVETWEB_MAIN_THREAD_STACK_SIZE);
|
||||||
|
|
||||||
pthread_create(&civetweb_thread, &civetweb_attr, &main_pthread, 0);
|
(void)pthread_create(&civetweb_thread, &civetweb_attr,
|
||||||
|
&main_pthread, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue