Re: [dpdk-dev] [PATCH] net: rename u16 to fix shadowed declaration warning

2018-06-27 Thread Thomas Monjalon
25/06/2018 17:38, Olivier Matz: > On Mon, Jun 04, 2018 at 02:40:00PM -0500, Gage Eads wrote: > > This patch renames u16 to u16_buf. u16 as a variable name causes a shadowed > > declaration warning if, for example, the application also typedefs u16 > > (e.g. by including a header containing "typedef

Re: [dpdk-dev] [PATCH] net: rename u16 to fix shadowed declaration warning

2018-06-25 Thread Olivier Matz
On Mon, Jun 04, 2018 at 02:40:00PM -0500, Gage Eads wrote: > This patch renames u16 to u16_buf. u16 as a variable name causes a shadowed > declaration warning if, for example, the application also typedefs u16 > (e.g. by including a header containing "typedef unsigned short u16") and > the applicat

[dpdk-dev] [PATCH] net: rename u16 to fix shadowed declaration warning

2018-06-04 Thread Gage Eads
This patch renames u16 to u16_buf. u16 as a variable name causes a shadowed declaration warning if, for example, the application also typedefs u16 (e.g. by including a header containing "typedef unsigned short u16") and the application is built with -Wshadow. Signed-off-by: Gage Eads --- lib/lib