summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmit.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
commit8cb6645ad8779c7066a9a31907004506b595aab2 (patch)
tree0fb33f0cf62d41c4532068d38b96600d2a10474a /Source/CTest/cmCTestSubmit.cxx
parent64db4e2cd8706ea91a8598145cff5d7607e3bfd2 (diff)
downloadCMake-8cb6645ad8779c7066a9a31907004506b595aab2.zip
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.gz
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.bz2
Remove some borland 6 warnings
Diffstat (limited to 'Source/CTest/cmCTestSubmit.cxx')
-rw-r--r--Source/CTest/cmCTestSubmit.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestSubmit.cxx b/Source/CTest/cmCTestSubmit.cxx
index 0d647eb..24f3e5e 100644
--- a/Source/CTest/cmCTestSubmit.cxx
+++ b/Source/CTest/cmCTestSubmit.cxx
@@ -299,7 +299,6 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
const std::string& url)
{
CURL *curl;
- CURLcode res = CURLcode();
/* In windows, this will init the winsock stuff */
::curl_global_init(CURL_GLOBAL_ALL);
@@ -363,8 +362,7 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
std::cout << "Trigger url: " << turl.c_str() << std::endl;
}
curl_easy_setopt(curl, CURLOPT_URL, turl.c_str());
- res = curl_easy_perform(curl);
- if ( res )
+ if ( curl_easy_perform(curl) )
{
std::cout << "Error when uploading" << std::endl;
::curl_easy_cleanup(curl);