From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 17 Feb 2017 17:56:15 -0500 Subject: [U-Boot] fsl_i2c.c: Fix warning on gcc-6.x In-Reply-To: <1486672816-10748-1-git-send-email-trini@konsulko.com> References: <1486672816-10748-1-git-send-email-trini@konsulko.com> Message-ID: <20170217225615.GY26129@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 Thu, Feb 09, 2017 at 03:40:16PM -0500, Tom Rini wrote: > With gcc-6.x we see: > drivers/i2c/fsl_i2c.c:86:3: warning: ?fsl_i2c_speed_map? defined but not > used [-Wunused-const-variable=] > > The easy way to fix this is that since we only use fsl_i2c_speed_map at > all on __M68K__ move the existing guards around slightly. > > Reported-by: Thomas Schaefer > Signed-off-by: Tom Rini > Acked-by: Heiko Schocher 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: