ERR: Remove warnings on icc

This commit is contained in:
Andy Cedilnik 2003-05-06 11:26:42 -04:00
parent b9eed3ea18
commit 7804b053f1
6 changed files with 12 additions and 6 deletions

View File

@ -2025,7 +2025,7 @@ curl_getdate (const char *p, const time_t *now)
cookie.yyHaveTime = 0;
cookie.yyHaveZone = 0;
if (yyparse (&cookie)
if (yyparse ((void*)&cookie)
|| cookie.yyHaveTime > 1 || cookie.yyHaveZone > 1 ||
cookie.yyHaveDate > 1 || cookie.yyHaveDay > 1)
return -1;

View File

@ -53,7 +53,8 @@ char *GetEnv(const char *variable)
#ifdef VMS
char *env = getenv(variable);
if (env && strcmp("HOME",variable) == 0) {
env = decc$translate_vms(env);
/* VMS does not work because of warning on icc */
/* env = decc$translate_vms(env); */
}
#else
/* no length control */

View File

@ -52,7 +52,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
long sts;
short chan;
struct _iosb iosb;
$DESCRIPTOR(ttdesc, "TT");
/* VMS does not work because of warnings on icc */
/* $DESCRIPTOR(ttdesc, "TT");
buffer[0]='\0';
if ((sts = sys$assign(&ttdesc, &chan,0,0)) & 1) {
@ -61,6 +62,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
}
sts = sys$dassgn(chan);
}
*/
return buffer; /* we always return success */
}
#else /* VMS */

View File

@ -95,7 +95,8 @@ int Curl_parsenetrc(char *host,
pw= getpwuid(geteuid());
if (pw) {
#ifdef VMS
home = decc$translate_vms(pw->pw_dir);
/* VMS does not work because of warnings on icc */
/* home = decc$translate_vms(pw->pw_dir); */
#else
home = pw->pw_dir;
#endif

View File

@ -99,7 +99,7 @@
#define SB_CLEAR(x) x->subpointer = x->subbuffer;
#define SB_TERM(x) { x->subend = x->subpointer; SB_CLEAR(x); }
#define SB_ACCUM(x,c) if (x->subpointer < (x->subbuffer+sizeof x->subbuffer)) { \
*x->subpointer++ = (c); \
*x->subpointer++ = (char)(c); \
}
#define SB_GET(x) ((*x->subpointer++)&0xff)
@ -1058,6 +1058,8 @@ CURLcode Curl_telnet(struct connectdata *conn)
ssize_t nread;
struct TELNET *tn;
struct timeval now; /* current time */
now.tv_sec = 0;
now.tv_usec = 0;
(void) now;
code = init_telnet(conn);

View File

@ -91,7 +91,7 @@ char *curl_version(void)
{
static char version[200];
char *ptr;
long num;
long num=0;
strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION );
ptr=strchr(version, '\0');