Re: [dpdk-dev] [PATCH v2] examples: fix typdef in performance thread app

2018-05-14 Thread Thomas Monjalon
14/05/2018 04:53, David Hunt: > 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

[dpdk-dev] [PATCH v2] examples: fix typdef in performance thread app

2018-05-14 Thread David Hunt
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