diff options
author | Fabio Porcedda <fabio.porcedda@telit.com> | 2010-12-20 15:14:37 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-21 10:23:41 +0100 |
commit | af05a9dd223f0a77133e37893354680c2f857a54 (patch) | |
tree | 45c7b0ee5e360bfc24609d0cbf5d511bcc005918 /commands | |
parent | 29ca79d0d58ff7593fd6508d9fa9625f59c93310 (diff) | |
download | barebox-af05a9dd223f0a77133e37893354680c2f857a54.tar.gz barebox-af05a9dd223f0a77133e37893354680c2f857a54.tar.xz |
xyzModem.c: fix 'dummy' is used uninitialized in this function warning
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@telit.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/xyzModem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/xyzModem.c b/commands/xyzModem.c index 1dd255d8e3..71d7d6864d 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; |