diff options
author | Wolfgang Denk <wd@denx.de> | 2009-07-19 01:15:52 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-19 01:15:52 +0200 |
commit | d39041fcadb1231430201d298c31f6be03d654f7 (patch) | |
tree | f678ef55f72a7a496ba16e2b43dac88a9ea1fb6a /board/mpl/pati | |
parent | 28c345042eafc550a34b9f52431bd4a22af6ac25 (diff) | |
download | u-boot-imx-d39041fcadb1231430201d298c31f6be03d654f7.zip u-boot-imx-d39041fcadb1231430201d298c31f6be03d654f7.tar.gz u-boot-imx-d39041fcadb1231430201d298c31f6be03d654f7.tar.bz2 |
PATI board: fix compiler warnings
Fix these:
pati.c: In function 'checkboard':
pati.c:358: warning: pointer targets in passing argument 2 of 'getenv_r' differ in signedness
../common/flash.c: In function 'write_word':
../common/flash.c:824: warning: dereferencing type-punned pointer will break strict-aliasing rules
cmd_pati.c: In function 'do_pati':
cmd_pati.c:279: warning: 'value' may be used uninitialized in this function
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/mpl/pati')
-rw-r--r-- | board/mpl/pati/cmd_pati.c | 2 | ||||
-rw-r--r-- | board/mpl/pati/pati.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/board/mpl/pati/cmd_pati.c b/board/mpl/pati/cmd_pati.c index 0682323..740881e 100644 --- a/board/mpl/pati/cmd_pati.c +++ b/board/mpl/pati/cmd_pati.c @@ -276,7 +276,7 @@ static int pati_pci_eeprom_write(unsigned short offset, unsigned long addr, unsi static int pati_pci_eeprom_read(unsigned short offset, unsigned long addr, unsigned short size) { int i; - unsigned short value; + unsigned short value = 0; unsigned short *buffer =(unsigned short *)addr; if((offset + size) > PATI_EEPROM_LAST_OFFSET) { size = PATI_EEPROM_LAST_OFFSET - offset; diff --git a/board/mpl/pati/pati.c b/board/mpl/pati/pati.c index 8f23d2d..1b3b698 100644 --- a/board/mpl/pati/pati.c +++ b/board/mpl/pati/pati.c @@ -347,8 +347,8 @@ int last_stage_init (void) int checkboard (void) { - unsigned char s[50]; - unsigned long reg; + char s[50]; + ulong reg; char rev; int i; |