[dpdk-dev] [PATCH v4 07/23] rte_ring.h: remove signed type flipflopping
Olivier Matz
olivier.matz at 6wind.com
Thu May 17 10:29:57 CEST 2018
On Mon, May 14, 2018 at 01:10:02PM +0800, Andy Green wrote:
> /projects/lagopus/src/dpdk/build/include/rte_ring.h:350:46:
> warning: conversion to 'uint32_t' {aka 'unsigned int'}
> from 'int' may change the sign of the result
> [-Wsign-conversion]
> update_tail(&r->prod, prod_head, prod_next, is_sp, 1);
>
> The visible apis take unsigned int, then call a private
> api taking an int, which finally calls an api taking an
> unsigned int.
>
> Convert the private api to take unsigned int removing
> 5 x warning similar to that shown above.
>
> Signed-off-by: Andy Green <andy at warmcat.com>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list