From: Tom Rini Date: Mon, 5 Jun 2017 20:22:56 -0400 Subject: [U-Boot] cmd/ethsw: Disable implicit enum conversion warning In-Reply-To: <1495975791-10413-1-git-send-email-trini@konsulko.com> References: <1495975791-10413-1-git-send-email-trini@konsulko.com> Message-ID: <20170606002256.GL10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, May 28, 2017 at 08:49:51AM -0400, Tom Rini wrote: > With clang-3.8 we see warnings like: > cmd/ethsw.c:304:6: warning: implicit conversion from > enumeration type 'enum ethsw_keyword_opt_id' to different enumeration type > 'enum ethsw_keyword_id' [-Wenum-conversion] > ethsw_id_pvid_no, > ^~~~~~~~~~~~~~~~ > > Because we have one enum for ethsw_keyword_id and a second enum for > ethsw_keyword_opt_id. This ends up being safe as ethsw_keyword_opt_id > explicitly starts after ethsw_keyword_id enum ends. Disable the > warning here rather than collapse these into one enum and rely on > comments to denote where optional keywords begin. > > Cc: Codrin Ciubotariu > Cc: Joe Hershberger > Signed-off-by: Tom Rini > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: