ERR: Remove warnings on Borland

This commit is contained in:
Andy Cedilnik 2003-05-05 10:48:19 -04:00
parent c70beb4bee
commit d859ad258c
5 changed files with 6 additions and 2 deletions

View File

@ -228,7 +228,7 @@ CURLcode Curl_dict(struct connectdata *conn)
return result;
}
}
(void)nth;
return CURLE_OK;
}

View File

@ -549,6 +549,7 @@ static Curl_addrinfo *my_getaddrinfo(struct SessionHandle *data,
* Stevens' Unix Network Programming 2nd editor, p. 304: 8192 bytes! */
port=0; /* unused in IPv4 code */
ret = 0; /* to prevent the compiler warning */
(void)ret;
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
struct in_addr *addrentry;

View File

@ -867,6 +867,7 @@ static void suboption(struct connectdata *conn)
printsub(data, '>', &temp[2], len-2);
break;
}
(void)subchar;
return;
}

View File

@ -1337,6 +1337,7 @@ ConnectionKillOne(struct SessionHandle *data)
/* the winner gets the honour of being disconnected */
result = Curl_disconnect(data->state.connects[connindex]);
(void)result;
/* clean the array entry */
data->state.connects[connindex] = NULL;
@ -1924,6 +1925,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
}
buf = data->state.buffer; /* this is our buffer */
(void)buf;
/*
* So if the URL was A://B/C,

View File

@ -114,7 +114,7 @@ char *curl_version(void)
sprintf(ptr, " zlib/%s", zlibVersion());
ptr += strlen(ptr);
#endif
(void)ptr;
return version;
}