[U-Boot] [PATCH] common: fix 'dummy' is used uninitialized in this function warning
Kim Phillips
kim.phillips at freescale.com
Mon Jun 15 18:50:40 CEST 2009
fix this gcc 4.4 warning:
xyzModem.c: In function 'xyzModem_stream_open':
xyzModem.c:564: warning: 'dummy' is used uninitialized in this function
Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
---
common/xyzModem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/xyzModem.c b/common/xyzModem.c
index a209dfa..7a46805 100644
--- a/common/xyzModem.c
+++ b/common/xyzModem.c
@@ -544,7 +544,7 @@ xyzModem_stream_open (connection_info_t * info, int *err)
xyzModem_CHAR_TIMEOUT);
#else
/* TODO: CHECK ! */
- int dummy;
+ int dummy = 0;
xyz.__chan = &dummy;
#endif
xyz.len = 0;
--
1.6.3.2
More information about the U-Boot
mailing list