numam-dpdk/examples/performance-thread
David Hunt 803ee2ebd3 examples/performance-thread: fix return type of threads
The function pthread_create() expects void *(*func) (void *)
for function pointer, however, lthread_func_t was defined as
void (*func) (void *), so now gcc 8.1 warns that the cast is
incorrect, causing a compilation failure. This patch changes
the declaration of lthread_func_t from returning a void to
returning a void*, and then changes the sample app in the
relevant places that are affected by the typedef change.

Fixes: 116819b9ed ("examples/performance-thread: add lthread subsystem")
Cc: stable@dpdk.org

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2018-05-14 12:20:14 +02:00
..
common examples/performance-thread: fix return type of threads 2018-05-14 12:20:14 +02:00
l3fwd-thread examples/performance-thread: fix return type of threads 2018-05-14 12:20:14 +02:00
pthread_shim examples/performance-thread: fix return type of threads 2018-05-14 12:20:14 +02:00
Makefile examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build examples: add empty meson files for unsupported ones 2018-04-17 16:09:43 +02:00