ERR: Remove some curl warnings

This commit is contained in:
Andy Cedilnik 2003-05-01 08:08:24 -04:00
parent 0d431a1daa
commit 261359919c
5 changed files with 9 additions and 1 deletions

View File

@ -126,7 +126,7 @@ int GetWebFile(void)
return retVal;
}
int main(int argc, char **argv)
int main(/*int argc, char **argv*/)
{
int retVal = 0;
curl_global_init(CURL_GLOBAL_DEFAULT);

View File

@ -141,6 +141,8 @@ int Curl_nonblock(int socket, /* operate on this */
#ifndef SETBLOCK
#error "no non-blocking method was found/used/set"
#endif
(void)socket;
(void)nonblock;
}
/*

View File

@ -38,6 +38,8 @@
/* Make this the last #include */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#else
#include <stdlib.h>
#endif
/*

View File

@ -228,6 +228,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
ssize_t *written)
{
ssize_t bytes_written;
(void)conn;
#ifdef USE_SSLEAY
/* SSL_write() is said to return 'int' while write() and send() returns
@ -342,6 +343,7 @@ int Curl_read(struct connectdata *conn,
{
ssize_t nread;
*n=0; /* reset amount to zero */
(void)conn;
#ifdef USE_SSLEAY
if (conn->ssl.use) {

View File

@ -673,6 +673,7 @@ static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
#endif
/* ====================================================== */
#ifdef USE_SSLEAY
static int
cert_hostcheck(const char *certname, const char *hostname)
{
@ -709,6 +710,7 @@ cert_hostcheck(const char *certname, const char *hostname)
}
return 0;
}
#endif
/* ====================================================== */
CURLcode