eal/windows: fix warnings
authorPallavi Kadam <pallavi.kadam@intel.com>
Thu, 11 Jun 2020 19:50:55 +0000 (12:50 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jun 2020 09:35:58 +0000 (11:35 +0200)
commitd87f964ce6decd07f64091a36a55642b8960fd4e
tree6b84608978f0eedfd712d7ecf76188ce26c66fdd
parent482bcf840409503c2b9da56941e5ff6566d51e45
eal/windows: fix warnings

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]

Signed-off-by: Ranjit Menon <ranjit.menon@intel.com>
Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
Tested-by: Narcisa Vasile <navasile@linux.microsoft.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/windows/eal.c
lib/librte_eal/windows/eal_lcore.c
lib/librte_eal/windows/eal_thread.c
lib/librte_eal/windows/getopt.c
lib/librte_eal/windows/include/pthread.h