[U-Boot] unused-const-variable warnings in FSL I2C driver

Tom Rini trini at konsulko.com
Thu Feb 9 20:39:01 UTC 2017


On Thu, Feb 09, 2017 at 10:42:52AM +0000, Thomas Schaefer wrote:

> Hi all,
> 
> 
> When compiling latest u-boot with gcc 6.3 for a T1024RDB system, I get a 'unused-const-variable' warning in the FSL I2C driver. Affected variable is fsl_i2c_speed_map.
> 
> I guess this warning can be fixed with the patch applied, but I'm not sure. What do you think?

Close, we can just move the __M68K__ test to cover the entire definition
instead and that ends up being slightly cleaner looking.  Thanks for the
prod!

-- 
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/20170209/678b2c2f/attachment.sig>


More information about the U-Boot mailing list