diff options
author | Wolfgang Denk <wd@denx.de> | 2011-12-09 12:14:21 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-10 23:08:02 +0100 |
commit | f49620665d67e43d92dd4deac2ffc025a7049306 (patch) | |
tree | 48eab246419197d32985e5bbc149fbe013122aee /fs/yaffs2 | |
parent | 4eaf172e98d651c0c5856290e5b6fd15744c13f2 (diff) | |
download | u-boot-imx-f49620665d67e43d92dd4deac2ffc025a7049306.zip u-boot-imx-f49620665d67e43d92dd4deac2ffc025a7049306.tar.gz u-boot-imx-f49620665d67e43d92dd4deac2ffc025a7049306.tar.bz2 |
drivers/net/at91_emac.c: Fix GCC 4.6 build warnings
Fix:
at91_emac.c: In function 'at91emac_phy_init':
at91_emac.c:244:20: warning: variable 'duplex' set but not used
[-Wunused-but-set-variable]
at91_emac.c:244:13: warning: variable 'speed' set but not used
[-Wunused-but-set-variable]
Use new debug_cond() to fix these warnings. In the result, anumber of
inconsistent printf() formats are detected:
at91_emac.c: In function 'at91emac_read':
at91_emac.c:147:2: warning: format '%x' expects argument of type
'unsigned int', but argument 2 has type 'struct at91_emac_t *'
[-Wformat]
at91_emac.c: In function 'at91emac_write':
at91_emac.c:157:2: warning: format '%x' expects argument of type
'unsigned int', but argument 2 has type 'struct at91_emac_t *'
[-Wformat]
at91_emac.c:157:2: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'short unsigned int *'
[-Wformat]
at91_emac.c: In function 'at91emac_recv':
at91_emac.c:451:3: warning: format '%d' expects argument of type
'int', but argument 2 has type 'long unsigned int' [-Wformat]
at91_emac.c:451:3: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
Fix these, too.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Jens Scharsig <js_at_ng@scharsoft.de>
Cc: Andreas Bießmann <andreas.devel@gmail.com>
Cc: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'fs/yaffs2')
0 files changed, 0 insertions, 0 deletions