mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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.
This commit is contained in:
parent
14798ab9a5
commit
b60db8ba14
@ -999,10 +999,9 @@ channel_open(
|
|||||||
for (addr = res; addr != NULL; addr = addr->ai_next)
|
for (addr = res; addr != NULL; addr = addr->ai_next)
|
||||||
{
|
{
|
||||||
const char *dst = hostname;
|
const char *dst = hostname;
|
||||||
const void *src = NULL;
|
|
||||||
# ifdef HAVE_INET_NTOP
|
# ifdef HAVE_INET_NTOP
|
||||||
|
const void *src = NULL;
|
||||||
char buf[NUMBUFLEN];
|
char buf[NUMBUFLEN];
|
||||||
# endif
|
|
||||||
|
|
||||||
if (addr->ai_family == AF_INET6)
|
if (addr->ai_family == AF_INET6)
|
||||||
{
|
{
|
||||||
@ -1018,7 +1017,6 @@ channel_open(
|
|||||||
sai->sin_port = htons(port);
|
sai->sin_port = htons(port);
|
||||||
src = &sai->sin_addr;
|
src = &sai->sin_addr;
|
||||||
}
|
}
|
||||||
# ifdef HAVE_INET_NTOP
|
|
||||||
if (src != NULL)
|
if (src != NULL)
|
||||||
{
|
{
|
||||||
dst = inet_ntop(addr->ai_family, src, buf, sizeof(buf));
|
dst = inet_ntop(addr->ai_family, src, buf, sizeof(buf));
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
837,
|
||||||
/**/
|
/**/
|
||||||
836,
|
836,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user