diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-06 15:26:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-06 15:26:42 (GMT) |
commit | 7804b053f112cb18a606e4796e5249c4d09331be (patch) | |
tree | 2d7b0f153d2218216443f478e485f0638a372f35 | |
parent | b9eed3ea186a4a1a034b78a3ddac035e856e23b7 (diff) | |
download | CMake-7804b053f112cb18a606e4796e5249c4d09331be.zip CMake-7804b053f112cb18a606e4796e5249c4d09331be.tar.gz CMake-7804b053f112cb18a606e4796e5249c4d09331be.tar.bz2 |
ERR: Remove warnings on icc
-rw-r--r-- | Source/CTest/Curl/getdate.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/getenv.c | 3 | ||||
-rw-r--r-- | Source/CTest/Curl/getpass.c | 4 | ||||
-rw-r--r-- | Source/CTest/Curl/netrc.c | 3 | ||||
-rw-r--r-- | Source/CTest/Curl/telnet.c | 4 | ||||
-rw-r--r-- | Source/CTest/Curl/version.c | 2 |
6 files changed, 12 insertions, 6 deletions
diff --git a/Source/CTest/Curl/getdate.c b/Source/CTest/Curl/getdate.c index 6e521bc..33fedfa 100644 --- a/Source/CTest/Curl/getdate.c +++ b/Source/CTest/Curl/getdate.c @@ -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; diff --git a/Source/CTest/Curl/getenv.c b/Source/CTest/Curl/getenv.c index e19bad2..efb4be1 100644 --- a/Source/CTest/Curl/getenv.c +++ b/Source/CTest/Curl/getenv.c @@ -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 */ diff --git a/Source/CTest/Curl/getpass.c b/Source/CTest/Curl/getpass.c index ec850d8..22692fd 100644 --- a/Source/CTest/Curl/getpass.c +++ b/Source/CTest/Curl/getpass.c @@ -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 */ diff --git a/Source/CTest/Curl/netrc.c b/Source/CTest/Curl/netrc.c index a8f0c01..da10a33 100644 --- a/Source/CTest/Curl/netrc.c +++ b/Source/CTest/Curl/netrc.c @@ -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 diff --git a/Source/CTest/Curl/telnet.c b/Source/CTest/Curl/telnet.c index 657698b..75dd03a 100644 --- a/Source/CTest/Curl/telnet.c +++ b/Source/CTest/Curl/telnet.c @@ -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); diff --git a/Source/CTest/Curl/version.c b/Source/CTest/Curl/version.c index 9f3e390..f442b16 100644 --- a/Source/CTest/Curl/version.c +++ b/Source/CTest/Curl/version.c @@ -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'); |