From d39041fcadb1231430201d298c31f6be03d654f7 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 19 Jul 2009 01:15:52 +0200 Subject: 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 --- board/mpl/pati/pati.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/mpl/pati/pati.c') diff --git a/board/mpl/pati/pati.c b/board/mpl/pati/pati.c index 8f23d2dc0e..1b3b698ed9 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; -- cgit