[dpdk-dev] [PATCH] net: rename u16 to fix shadowed declaration warning
Olivier Matz
olivier.matz at 6wind.com
Mon Jun 25 17:38:35 CEST 2018
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>
More information about the dev
mailing list