[PATCH v1] bbdev: prevent clang 3.4.2 compilation error

Ali Alnubani alialnu at nvidia.com
Mon Oct 10 20:39:01 CEST 2022


> -----Original Message-----
> From: Nicolas Chautru <nicolas.chautru at intel.com>
> Sent: Monday, October 10, 2022 8:04 PM
> To: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>;
> dev at dpdk.org; gakhil at marvell.com
> Cc: Nicolas Chautru <nicolas.chautru at intel.com>
> Subject: [PATCH v1] bbdev: prevent clang 3.4.2 compilation error
> 
> Casting explicitly from enum to uint8_t to avoid compilation
> warning with clang 3.4.2 -Wtautological-constant-out-of-range-compare
> 
> Signed-off-by: Nicolas Chautru <nicolas.chautru at intel.com>
> ---

Verified that the build passes with this patch. Thanks Nicolas.

Tested-by: Ali Alnubani <alialnu at nvidia.com>


More information about the dev mailing list