[PATCH v2 1/4] eal/windows: fix pedantic build

Thomas Monjalon thomas at monjalon.net
Wed Mar 1 17:33:39 CET 2023


12/01/2023 21:37, Thomas Monjalon:
> MinGW GCC 12 shows an illegal pointer conversion
> when included in a pedantic module:
> 
> lib/eal/windows/include/pthread.h:137:41: error:
> 	ISO C forbids conversion of object pointer to function pointer type
> 	[-Werror=pedantic]
>  137 | hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadfunc,
>      |                                 ^
> 
> Fixes: e8428a9d89f1 ("eal/windows: add some basic functions and macros")
> Cc: stable at dpdk.org
> 
> By using uintptr_t, the compiler is forced to accept the conversion.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>

Applied this single patch, so the rest of the series can be managed in mlx tree.




More information about the dev mailing list