fix this gcc 4.4 warning: xyzModem.c: In function 'xyzModem_stream_open': xyzModem.c:564: warning: 'dummy' is used uninitialized in this function Copied from U-Boot Signed-off-by: Fabio Porcedda <fabio.porcedda@xxxxxxxxx> --- commands/xyzModem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/commands/xyzModem.c b/commands/xyzModem.c index 1dd255d..71d7d68 100644 --- a/commands/xyzModem.c +++ b/commands/xyzModem.c @@ -492,7 +492,7 @@ int 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.7.3.4 Changes for v2: - fixed commit log message _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox