[ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-08-26 Thread Sergey Madaminov
Currently, the function call type cast for getting file handle produces a warning during OvS compilation on Windows with the following message: ``` ..\include\windows\unistd.h:97:25: warning: cast from function call of type 'intptr_t' (aka 'int') to non-matching type 'HANDLE' (aka 'void *') [-Wbad

Re: [ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-09-02 Thread Michael Santana
On 8/26/21 11:45 AM, Sergey Madaminov wrote: Currently, the function call type cast for getting file handle produces a warning during OvS compilation on Windows with the following message: ``` ..\include\windows\unistd.h:97:25: warning: cast from function call of type 'intptr_t' (aka 'int') t

Re: [ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-09-02 Thread Sergey Madaminov
Yes, depending on the target (32-bit or 64-bit), the INT_PTR will represent a different underlying type (think `int` vs `long long`) so the casting will be done accordingly. Here also a link to the Microsoft's documentation: The New Data Types - Win32 apps | Microsoft Docs

Re: [ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-09-03 Thread Michael Santana
On 8/26/21 11:45 AM, Sergey Madaminov wrote: Currently, the function call type cast for getting file handle produces a warning during OvS compilation on Windows with the following message: ``` ..\include\windows\unistd.h:97:25: warning: cast from function call of type 'intptr_t' (aka 'int') t

Re: [ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-09-15 Thread Ilya Maximets
On 9/3/21 18:01, Michael Santana wrote: > > > On 8/26/21 11:45 AM, Sergey Madaminov wrote: >> Currently, the function call type cast for getting file handle >> produces a warning during OvS compilation on Windows with the following >> message: >> >> ``` >> ..\include\windows\unistd.h:97:25: warni