diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-08-09 09:43:40 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:27 -0700 |
commit | dae320288dcda9cae8a98b885e16ba8251294840 (patch) | |
tree | e7c7b27e2f95517c536ea210704358738d5a676a /include/i2c.h | |
parent | 0c8b6583a0a9c23c9041c790a78ec6aaeb7d69dc (diff) |
Fix compiler warnings generated by gcc 4.6.
The newer compiler version is more thorough in detecting code
inconsistencies, and reports warnings in many cases when building
u-boot for kaen and alex.
This change modifies the code to get rid of the warnings. There
supposed to be no logical changes, so no testing other than
building the system is being done.
The files not yet upstreamed are excluded and will be submitted
separately.
BUG=chromium-os:18862
TEST=manual
. run the following commands
emerge-tegra2_kaen chromeos-u-boot
emerge-x86-alex chromeos-u-boot
. observe them succeed
Change-Id: I4c872d84352539d24a418ba910274d08d02d26a8
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/5706
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i2c.h b/include/i2c.h index 8ceb4c85214..ed83089b147 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -55,7 +55,7 @@ #else #define CONFIG_SYS_MAX_I2C_BUS 1 #define I2C_GET_BUS() 0 -#define I2C_SET_BUS(a) +#define I2C_SET_BUS(a) { (void) a; } #endif /* define the I2C bus number for RTC and DTT if not already done */ |