[dpdk-dev] [PATCH] eal: fix warnings on Windows
Ranjit Menon
ranjit.menon at intel.com
Thu May 14 19:46:54 CEST 2020
On 5/14/2020 1:02 AM, Thomas Monjalon wrote:
> 14/05/2020 00:53, Pallavi Kadam:
>> This patch fixes bunch of warnings when compiling on Windows
>> such as the use of an unsafe string function (strerror),
>> [-Wunused-const-variable] in getopt.c and
>> [-Wunused-variable], [-Wunused-function] in eal_common_options.c
>>
>> Signed-off-by: Ranjit Menon <ranjit.menon at intel.com>
>> Signed-off-by: Pallavi Kadam <pallavi.kadam at intel.com>
>> Tested-by: Pallavi Kadam <pallavi.kadam at intel.com>
>> ---
>> +#ifndef RTE_EXEC_ENV_WINDOWS
>> static int
>> eal_plugindir_init(const char *path)
>
> Why disabling the plugin mechanism?
> Can we make it working instead?
>
The function that is calling eal_plugindir_init() has already been
#ifndef-ed out for Windows compilation. So, this function will never be
called on Windows and was the cause of multiple compilation warnings.
Best to keep it disabled until we can have this implemented and working
on Windows
> PS: When sending patches for Windows, please Cc
> the official Windows maintainers and Dmitry Kozliuk.
>
>
Yes. Will do.
ranjit m.
More information about the dev
mailing list