Thread (12 messages) 12 messages, 4 authors, 2018-07-26

Re: [PATCH v2 2/2] ring: fix sign conversion warning

From: Olivier Matz <hidden>
Date: 2018-07-16 07:16:31

On Mon, May 28, 2018 at 05:03:43PM +0800, Andy Green wrote:
On gcc 5.4.0 / native aarch64 from Ubuntu 16.04:

/home/agreen/lagopus/src/dpdk/build/include/rte_ring.h:
In function '__rte_ring_do_dequeue':
/home/agreen/lagopus/src/dpdk/build/include/rte_ring.h:
 385:35: warning: conversion to 'int' from 'unsigned int'
may change the sign of the result [-Wsign-conversion]
  n = __rte_ring_move_cons_head(r, is_sc, n, behavior,
                                   ^

Signed-off-by: Andy Green <redacted>
Fixes: e8ed5056c8 ("ring: remove signed type flip-flopping")
Acked-by: Olivier Matz <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help