diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-13 14:01:04 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-13 14:01:04 (GMT) |
commit | 3f75f0ea1e0404951797c2918d93465b9c612ea0 (patch) | |
tree | 1e2be9f03c86db340d683e06ef38efdbfd2b71fc /Source/CTest | |
parent | a4c8aee1f489fb0b5e7bdc1fe44f964b6f5d1d4d (diff) | |
download | CMake-3f75f0ea1e0404951797c2918d93465b9c612ea0.zip CMake-3f75f0ea1e0404951797c2918d93465b9c612ea0.tar.gz CMake-3f75f0ea1e0404951797c2918d93465b9c612ea0.tar.bz2 |
COMP: Attempt to remove warnings on borland
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/Curl/base64.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/connect.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/cookie.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/dict.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/easy.c | 12 | ||||
-rw-r--r-- | Source/CTest/Curl/escape.c | 2 | ||||
-rw-r--r-- | Source/CTest/Curl/formdata.c | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/Source/CTest/Curl/base64.c b/Source/CTest/Curl/base64.c index 6644d2f..7f8ae86 100644 --- a/Source/CTest/Curl/base64.c +++ b/Source/CTest/Curl/base64.c @@ -86,7 +86,7 @@ size_t Curl_base64_decode(const char *src, char *dest) int i; int numQuantums; unsigned char lastQuantum[3]; - size_t rawlen=0; + size_t rawlen; while((src[length] != '=') && src[length]) length++; diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c index 361152a..c107354 100644 --- a/Source/CTest/Curl/connect.c +++ b/Source/CTest/Curl/connect.c @@ -405,7 +405,7 @@ static CURLcode bindlocal(struct connectdata *conn, */ static bool verifyconnect(curl_socket_t sockfd, int *error) { - bool rc = TRUE; + bool rc; #ifdef SO_ERROR int err = 0; #ifdef __hpux diff --git a/Source/CTest/Curl/cookie.c b/Source/CTest/Curl/cookie.c index 0f372d8..3ba5627 100644 --- a/Source/CTest/Curl/cookie.c +++ b/Source/CTest/Curl/cookie.c @@ -156,7 +156,7 @@ Curl_cookie_add(struct SessionHandle *data, struct Cookie *co; struct Cookie *lastc=NULL; time_t now = time(NULL); - bool replace_old = FALSE; + bool replace_old; bool badcookie = FALSE; /* cookies are good by default. mmmmm yummy */ /* First, alloc and init a new struct for it */ diff --git a/Source/CTest/Curl/dict.c b/Source/CTest/Curl/dict.c index c5e2c04..d74c635 100644 --- a/Source/CTest/Curl/dict.c +++ b/Source/CTest/Curl/dict.c @@ -87,7 +87,7 @@ CURLcode Curl_dict(struct connectdata *conn) char *strategy = NULL; char *nthdef = NULL; /* This is not part of the protocol, but required by RFC 2229 */ - CURLcode result=CURLE_OK; + CURLcode result; struct SessionHandle *data=conn->data; curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; diff --git a/Source/CTest/Curl/easy.c b/Source/CTest/Curl/easy.c index 27568f2..fb116fd 100644 --- a/Source/CTest/Curl/easy.c +++ b/Source/CTest/Curl/easy.c @@ -219,7 +219,7 @@ CURLcode curl_global_init_mem(long flags, curl_malloc_callback m, curl_free_callback f, curl_realloc_callback r, curl_strdup_callback s, curl_calloc_callback c) { - CURLcode code = CURLE_OK; + CURLcode code; /* Invalid input, return immediately */ if (!m || !f || !r || !s || !c) @@ -300,12 +300,12 @@ typedef int (*func_T)(void); CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...) { va_list arg; - func_T param_func = (func_T)0; - long param_long = 0; - void *param_obj = NULL; - curl_off_t param_offset = 0; + func_T param_func; + long param_long; + void *param_obj; + curl_off_t param_offset; struct SessionHandle *data = curl; - CURLcode ret=CURLE_FAILED_INIT; + CURLcode ret; if(!curl) return CURLE_BAD_FUNCTION_ARGUMENT; diff --git a/Source/CTest/Curl/escape.c b/Source/CTest/Curl/escape.c index d418e5b..2b9a883 100644 --- a/Source/CTest/Curl/escape.c +++ b/Source/CTest/Curl/escape.c @@ -43,7 +43,7 @@ char *curl_escape(const char *string, int inlength) { size_t alloc = (inlength?(size_t)inlength:strlen(string))+1; char *ns; - char *testing_ptr = NULL; + char *testing_ptr; unsigned char in; size_t newlen = alloc; int strindex=0; diff --git a/Source/CTest/Curl/formdata.c b/Source/CTest/Curl/formdata.c index 8f9b41e..88e1e22 100644 --- a/Source/CTest/Curl/formdata.c +++ b/Source/CTest/Curl/formdata.c @@ -241,7 +241,7 @@ static FormInfo * AddFormInfo(char *value, static const char * ContentTypeForFilename (const char *filename, const char *prevtype) { - const char *contenttype = NULL; + const char *contenttype; unsigned int i; /* * No type was specified, we scan through a few well-known |