summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-08 15:42:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-08 15:42:38 (GMT)
commit3b3dd31bd4e64d7630040ababe7a3d51c6ce1f40 (patch)
tree027173df8cef6ac4b1990e16b5aa8c8568de7da4 /Source/CTest
parentfbaead2a09e70c7bf6deaf86c536caedccb26792 (diff)
downloadCMake-3b3dd31bd4e64d7630040ababe7a3d51c6ce1f40.zip
CMake-3b3dd31bd4e64d7630040ababe7a3d51c6ce1f40.tar.gz
CMake-3b3dd31bd4e64d7630040ababe7a3d51c6ce1f40.tar.bz2
COMP: Remove warning on optimized build
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/hostip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CTest/Curl/hostip.c b/Source/CTest/Curl/hostip.c
index f407435..118bdac 100644
--- a/Source/CTest/Curl/hostip.c
+++ b/Source/CTest/Curl/hostip.c
@@ -379,7 +379,7 @@ int Curl_resolv(struct connectdata *conn,
CURLcode result;
/* default to failure */
- int rc = CURLRESOLV_ERROR;
+ int rc;
*entry = NULL;
#ifdef HAVE_SIGSETJMP
@@ -391,6 +391,7 @@ int Curl_resolv(struct connectdata *conn,
return CURLRESOLV_ERROR;
}
#endif
+ rc = CURLRESOLV_ERROR;
/* Create an entry id, based upon the hostname and port */
entry_id = create_hostcache_id(hostname, port);