ERR: Remove warnings on Borland
This commit is contained in:
parent
c70beb4bee
commit
d859ad258c
|
@ -228,7 +228,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(void)nth;
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -549,6 +549,7 @@ static Curl_addrinfo *my_getaddrinfo(struct SessionHandle *data,
|
||||||
* Stevens' Unix Network Programming 2nd editor, p. 304: 8192 bytes! */
|
* Stevens' Unix Network Programming 2nd editor, p. 304: 8192 bytes! */
|
||||||
port=0; /* unused in IPv4 code */
|
port=0; /* unused in IPv4 code */
|
||||||
ret = 0; /* to prevent the compiler warning */
|
ret = 0; /* to prevent the compiler warning */
|
||||||
|
(void)ret;
|
||||||
|
|
||||||
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
|
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
|
||||||
struct in_addr *addrentry;
|
struct in_addr *addrentry;
|
||||||
|
|
|
@ -867,6 +867,7 @@ static void suboption(struct connectdata *conn)
|
||||||
printsub(data, '>', &temp[2], len-2);
|
printsub(data, '>', &temp[2], len-2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
(void)subchar;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1337,6 +1337,7 @@ ConnectionKillOne(struct SessionHandle *data)
|
||||||
|
|
||||||
/* the winner gets the honour of being disconnected */
|
/* the winner gets the honour of being disconnected */
|
||||||
result = Curl_disconnect(data->state.connects[connindex]);
|
result = Curl_disconnect(data->state.connects[connindex]);
|
||||||
|
(void)result;
|
||||||
|
|
||||||
/* clean the array entry */
|
/* clean the array entry */
|
||||||
data->state.connects[connindex] = NULL;
|
data->state.connects[connindex] = NULL;
|
||||||
|
@ -1924,6 +1925,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = data->state.buffer; /* this is our buffer */
|
buf = data->state.buffer; /* this is our buffer */
|
||||||
|
(void)buf;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* So if the URL was A://B/C,
|
* So if the URL was A://B/C,
|
||||||
|
|
|
@ -114,7 +114,7 @@ char *curl_version(void)
|
||||||
sprintf(ptr, " zlib/%s", zlibVersion());
|
sprintf(ptr, " zlib/%s", zlibVersion());
|
||||||
ptr += strlen(ptr);
|
ptr += strlen(ptr);
|
||||||
#endif
|
#endif
|
||||||
|
(void)ptr;
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue