Re: [dpdk-dev] [PATCH v3 21/24] rte_ethdev.h: explicit cast for truncation

2018-05-13 Thread Thomas Monjalon
12/05/2018 04:00, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_ethdev.h: > In function 'rte_eth_tx_buffer_flush': > /projects/lagopus/src/dpdk/build/include/rte_ethdev.h:4248:55: > warning: conversion from 'int' to 'uint16_t' > {aka 'short unsigned int'} may change value [-Wconversion

[dpdk-dev] [PATCH v3 21/24] rte_ethdev.h: explicit cast for truncation

2018-05-11 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_ethdev.h: In function 'rte_eth_tx_buffer_flush': /projects/lagopus/src/dpdk/build/include/rte_ethdev.h:4248:55: warning: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Wconversion] buffer->error_callback(&buffer->pkt