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

2018-05-14 Thread Hunt, David
Hi Thomas, On 13/5/2018 10:37 PM, Thomas Monjalon wrote: 10/05/2018 07:31, 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 comp

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

2018-05-13 Thread Thomas Monjalon
10/05/2018 07:31, 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

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

2018-05-11 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of David Hunt > Sent: Thursday, May 10, 2018 6:31 AM > To: dev@dpdk.org > Cc: Mcnamara, John ; Hunt, David > > Subject: [dpdk-dev] [PATCH] examples: fix typdef in performance thread

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

2018-05-10 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