From: Bram Moolenaar Date: Fri, 29 May 2020 19:38:42 +0000 (+0200) Subject: patch 8.2.0837: compiler warning for value set but not used X-Git-Tag: v8.2.0837 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b60db8ba149b26024e6d871e8634d7fea639252a;p=vim 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 index 2b85ec91d..6f182c15d 100644 --- 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; - const void *src = NULL; # ifdef HAVE_INET_NTOP + const void *src = NULL; 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 index a88e478ac..a963bdc86 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 837, /**/ 836, /**/