From: Kim Phillips Date: Mon, 15 Jun 2009 16:50:40 +0000 (-0500) Subject: common: fix 'dummy' is used uninitialized in this function warning X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2a2ed845c085eb093b69fa6382fcf7534bb1f4b0;p=u-boot.git common: 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 Signed-off-by: Kim Phillips --- diff --git a/common/xyzModem.c b/common/xyzModem.c index a209dfa4af..7a46805e13 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;