Patch 8.2.0837
Problem: Compiler warning for value set but not used.
Solution: Move variable inside #ifdef.
Files: src/channel.c
*** ../vim-8.2.0836/src/channel.c 2020-05-24 17:23:41.838154769 +0200
--- src/channel.c 2020-05-24 17:23:24.726211766 +0200
***************
*** 999,1008 ****
for (addr = res; addr != NULL; addr = addr->ai_next)
{
const char *dst = hostname;
- const void *src = NULL;
# ifdef HAVE_INET_NTOP
char buf[NUMBUFLEN];
- # endif
if (addr->ai_family == AF_INET6)
{
--- 999,1007 ----
for (addr = res; addr != NULL; addr = addr->ai_next)
{
const char *dst = hostname;
# ifdef HAVE_INET_NTOP
+ const void *src = NULL;
char buf[NUMBUFLEN];
if (addr->ai_family == AF_INET6)
{
***************
*** 1018,1024 ****
sai->sin_port = htons(port);
src = &sai->sin_addr;
}
- # ifdef HAVE_INET_NTOP
if (src != NULL)
{
dst = inet_ntop(addr->ai_family, src, buf, sizeof(buf));
--- 1017,1022 ----
*** ../vim-8.2.0836/src/version.c 2020-05-28 21:30:06.359300208 +0200
--- src/version.c 2020-05-29 21:36:52.753667722 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 837,
/**/
--
hundred-and-one symptoms of being an internet addict:
203. You're an active member of more than 20 newsgroups.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///