# HG changeset patch # User Bram Moolenaar # Date 1590781503 -7200 # Node ID 5e86e00fa712887f333552d97197fa8f3efe4d6a # Parent 37ba6d4a94559cff4e670bbb15496e33a113186d patch 8.2.0837: compiler warning for value set but not used Commit: https://github.com/vim/vim/commit/b60db8ba149b26024e6d871e8634d7fea639252a Author: Bram Moolenaar Date: Fri May 29 21:38:42 2020 +0200 patch 8.2.0837: compiler warning for value set but not used Problem: Compiler warning for value set but not used. Solution: Move variable inside #ifdef. diff --git a/src/channel.c b/src/channel.c --- a/src/channel.c +++ b/src/channel.c @@ -999,10 +999,9 @@ channel_open( for (addr = res; addr != NULL; addr = addr->ai_next) { const char *dst = hostname; +# ifdef HAVE_INET_NTOP const void *src = NULL; -# ifdef HAVE_INET_NTOP char buf[NUMBUFLEN]; -# endif if (addr->ai_family == AF_INET6) { @@ -1018,7 +1017,6 @@ channel_open( 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)); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 837, +/**/ 836, /**/ 835,