[dpdk-stable] [dpdk-dev] [PATCH] mlx5: fix __mlx5_bit_off macro warning for Windows
    Dmitry Kozlyuk 
    dmitry.kozliuk at gmail.com
       
    Wed Jan  6 15:22:08 CET 2021
    
    
  
On Wed,  6 Jan 2021 15:42:21 +0200, Tal Shnaiderman wrote:
> While compiling with clang 11 the callers of the
> __mlx5_bit_off macro warns on the cast of pointers to
> unsigned long which is a smaller int type in Windows.
> 
> warning: cast to smaller integer type 'unsigned long'
> from 'u8 (*)[16]' [-Wpointer-to-int-cast]
> 
> To resolve it the type is changed to size_t to be
> compatible for both Linux and Windows.
uintptr_t is the type for integers storing pointer values, not size_t.
    
    
More information about the stable
mailing list