silence compiler warnings for mingw win32 builds --enable-debug

This commit is contained in:
Daniel Stenberg 2005-03-14 15:43:23 +00:00
Родитель 387aaba810
Коммит 3916d1e6cb
4 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -364,6 +364,9 @@ static CURLcode bindlocal(struct connectdata *conn,
return CURLE_OK; return CURLE_OK;
} /* end of device selection support */ } /* end of device selection support */
#else
(void)conn;
(void)sockfd;
#endif /* end of HAVE_INET_NTOA */ #endif /* end of HAVE_INET_NTOA */
return CURLE_HTTP_PORT_FAILED; return CURLE_HTTP_PORT_FAILED;

Просмотреть файл

@ -1062,7 +1062,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
/* we set the secondary socket variable to this for now, it /* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case is only so that the cleanup function will close it in case
we fail before the true secondary stuff is made */ we fail before the true secondary stuff is made */
if(-1 != conn->sock[SECONDARYSOCKET]) if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET])
sclose(conn->sock[SECONDARYSOCKET]); sclose(conn->sock[SECONDARYSOCKET]);
conn->sock[SECONDARYSOCKET] = portsock; conn->sock[SECONDARYSOCKET] = portsock;

Просмотреть файл

@ -24,12 +24,8 @@
***************************************************************************/ ***************************************************************************/
#include "setup.h" #include "setup.h"
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \ extern char *Curl_if2ip(const char *interf, char *buf, int buf_size);
!defined(__riscos__) && !defined(__INTERIX)
extern char *Curl_if2ip(const char *interface, char *buf, int buf_size);
#else
#define Curl_if2ip(a,b,c) NULL
#endif
#ifdef __INTERIX #ifdef __INTERIX
/* Nedelcho Stanev's work-around for SFU 3.0 */ /* Nedelcho Stanev's work-around for SFU 3.0 */
struct ifreq { struct ifreq {

Просмотреть файл

@ -346,7 +346,7 @@ curl_share_strerror(CURLSHcode error)
static const char * static const char *
get_winsock_error (int err, char *buf, size_t len) get_winsock_error (int err, char *buf, size_t len)
{ {
char *p; const char *p;
#ifndef CURL_DISABLE_VERBOSE_STRINGS #ifndef CURL_DISABLE_VERBOSE_STRINGS
switch (err) { switch (err) {