Hi Attached patch fixes this compilation warning, which looks like a bug:
$ gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_ATHENA -g -O2 -Wall -Wshadow -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DEXITFREE -o objects/channel.o channel.c channel.c: In function ‘channel_send’: channel.c:1575:8: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized] res = write(fd, buf, len); ^ Regards Dominique -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/channel.c b/src/channel.c index d810925..1e2e21d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1537,7 +1537,7 @@ channel_send(int ch_idx, char_u *buf, char *fun) channel_T *channel = &channels[ch_idx]; int len = (int)STRLEN(buf); int res; - int fd; + int fd = -1; int use_socket = FALSE; if (channel->ch_sock >= 0)