[dpdk-dev] [PATCH v4] eal: fix warnings on Windows

Narcisa Ana Maria Vasile navasile at linux.microsoft.com
Thu Jun 11 22:18:37 CEST 2020


On Thu, Jun 11, 2020 at 12:50:55PM -0700, Pallavi Kadam wrote:
> Fixed bunch of warnings when compiling using clang on Windows
> such as the use of an unsafe string function (strerror),
> [-Wunused-variable], [-Wunused-function] in eal_common_options.c
> [-Wunused-const-variable] in getopt.c and [-Wunused-parameter]
> in eal_common_thread.c.
> Also fixed warnings generated using Mingw:
> [-Werror=old-style-definition], [-Werror=cast-function-type] and
> [-Werror=attributes]
> 
> v4 changes:
> 	Removed -Werror that was added on Windows in v3
> 	Removed self 'Tested-by' line
> 
> v3 changes:
> 	Fixed pthread warning
> 	Added -Werror on Windows
> 	Fixed MinGW warnings
> 
> v2 changes:
> 	Excluded dirent.h file on Windows temporarily.
> 	(This file will stay on Windows for later use)
> 
> Signed-off-by: Ranjit Menon <ranjit.menon at intel.com>
> Signed-off-by: Pallavi Kadam <pallavi.kadam at intel.com>
> ---
Tested with clang, no warnings generated.
Tested-by: Narcisa Vasile <navasile at linux.microsoft.com>
Acked-by: Narcisa Vasile <navasile at linux.microsoft.com>


More information about the dev mailing list