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

Thomas Monjalon thomas at monjalon.net
Wed Jun 27 22:57:44 CEST 2018


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 unsigned short u16") and
> > the application is built with -Wshadow.
> > 
> > Signed-off-by: Gage Eads <gage.eads at intel.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks




More information about the dev mailing list