Skip to content
Snippets Groups Projects
Commit 2a2ed845 authored by Kim Phillips's avatar Kim Phillips Committed by Wolfgang Denk
Browse files

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: default avatarKim Phillips <kim.phillips@freescale.com>
parent 1ea6bcd8
Branches
Tags
No related merge requests found
...@@ -544,7 +544,7 @@ xyzModem_stream_open (connection_info_t * info, int *err) ...@@ -544,7 +544,7 @@ xyzModem_stream_open (connection_info_t * info, int *err)
xyzModem_CHAR_TIMEOUT); xyzModem_CHAR_TIMEOUT);
#else #else
/* TODO: CHECK ! */ /* TODO: CHECK ! */
int dummy; int dummy = 0;
xyz.__chan = &dummy; xyz.__chan = &dummy;
#endif #endif
xyz.len = 0; xyz.len = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment