[U-Boot] fsl_i2c.c: Fix warning on gcc-6.x

Tom Rini trini at konsulko.com
Fri Feb 17 22:56:15 UTC 2017


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 <Thomas.Schaefer at kontron.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Acked-by: Heiko Schocher <hs at denx.de>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20170217/3e0055dc/attachment.sig>


More information about the U-Boot mailing list