ERR: Remove warnings on icc
This commit is contained in:
parent
b9eed3ea18
commit
7804b053f1
|
@ -2025,7 +2025,7 @@ curl_getdate (const char *p, const time_t *now)
|
||||||
cookie.yyHaveTime = 0;
|
cookie.yyHaveTime = 0;
|
||||||
cookie.yyHaveZone = 0;
|
cookie.yyHaveZone = 0;
|
||||||
|
|
||||||
if (yyparse (&cookie)
|
if (yyparse ((void*)&cookie)
|
||||||
|| cookie.yyHaveTime > 1 || cookie.yyHaveZone > 1 ||
|
|| cookie.yyHaveTime > 1 || cookie.yyHaveZone > 1 ||
|
||||||
cookie.yyHaveDate > 1 || cookie.yyHaveDay > 1)
|
cookie.yyHaveDate > 1 || cookie.yyHaveDay > 1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -53,7 +53,8 @@ char *GetEnv(const char *variable)
|
||||||
#ifdef VMS
|
#ifdef VMS
|
||||||
char *env = getenv(variable);
|
char *env = getenv(variable);
|
||||||
if (env && strcmp("HOME",variable) == 0) {
|
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
|
#else
|
||||||
/* no length control */
|
/* no length control */
|
||||||
|
|
|
@ -52,7 +52,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
||||||
long sts;
|
long sts;
|
||||||
short chan;
|
short chan;
|
||||||
struct _iosb iosb;
|
struct _iosb iosb;
|
||||||
$DESCRIPTOR(ttdesc, "TT");
|
/* VMS does not work because of warnings on icc */
|
||||||
|
/* $DESCRIPTOR(ttdesc, "TT");
|
||||||
|
|
||||||
buffer[0]='\0';
|
buffer[0]='\0';
|
||||||
if ((sts = sys$assign(&ttdesc, &chan,0,0)) & 1) {
|
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);
|
sts = sys$dassgn(chan);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return buffer; /* we always return success */
|
return buffer; /* we always return success */
|
||||||
}
|
}
|
||||||
#else /* VMS */
|
#else /* VMS */
|
||||||
|
|
|
@ -95,7 +95,8 @@ int Curl_parsenetrc(char *host,
|
||||||
pw= getpwuid(geteuid());
|
pw= getpwuid(geteuid());
|
||||||
if (pw) {
|
if (pw) {
|
||||||
#ifdef VMS
|
#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
|
#else
|
||||||
home = pw->pw_dir;
|
home = pw->pw_dir;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
#define SB_CLEAR(x) x->subpointer = x->subbuffer;
|
#define SB_CLEAR(x) x->subpointer = x->subbuffer;
|
||||||
#define SB_TERM(x) { x->subend = x->subpointer; SB_CLEAR(x); }
|
#define SB_TERM(x) { x->subend = x->subpointer; SB_CLEAR(x); }
|
||||||
#define SB_ACCUM(x,c) if (x->subpointer < (x->subbuffer+sizeof x->subbuffer)) { \
|
#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)
|
#define SB_GET(x) ((*x->subpointer++)&0xff)
|
||||||
|
@ -1058,6 +1058,8 @@ CURLcode Curl_telnet(struct connectdata *conn)
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
struct TELNET *tn;
|
struct TELNET *tn;
|
||||||
struct timeval now; /* current time */
|
struct timeval now; /* current time */
|
||||||
|
now.tv_sec = 0;
|
||||||
|
now.tv_usec = 0;
|
||||||
(void) now;
|
(void) now;
|
||||||
|
|
||||||
code = init_telnet(conn);
|
code = init_telnet(conn);
|
||||||
|
|
|
@ -91,7 +91,7 @@ char *curl_version(void)
|
||||||
{
|
{
|
||||||
static char version[200];
|
static char version[200];
|
||||||
char *ptr;
|
char *ptr;
|
||||||
long num;
|
long num=0;
|
||||||
strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION );
|
strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION );
|
||||||
ptr=strchr(version, '\0');
|
ptr=strchr(version, '\0');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue