From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net: rename u16 to fix shadowed declaration warning Date: Wed, 27 Jun 2018 22:57:44 +0200 Message-ID: <1835547.RQn5My3jE0@xps> References: <20180604194000.12632-1-gage.eads@intel.com> <20180625153835.6yxciwdca3hkyeg4@platinum> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Olivier Matz To: Gage Eads Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id E7ACA1BF51 for ; Wed, 27 Jun 2018 22:57:48 +0200 (CEST) In-Reply-To: <20180625153835.6yxciwdca3hkyeg4@platinum> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > > Acked-by: Olivier Matz Applied, thanks