projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge lp:~tangent-org/libmemcached/1.0-build Build: jenkins-Libmemcached-1.0-53
[awesomized/libmemcached]
/
libtest
/
http.cc
diff --git
a/libtest/http.cc
b/libtest/http.cc
index d7faf19d90d44508feea535e04ff565d5b26f158..0af12925f1d730b8b7a04d733d31577b9cf3c9b0 100644
(file)
--- a/
libtest/http.cc
+++ b/
libtest/http.cc
@@
-96,6
+96,8
@@
extern "C" size_t
static void init(CURL *curl, const std::string& url)
{
static void init(CURL *curl, const std::string& url)
{
+ (void)curl;
+ (void)url;
if (HAVE_LIBCURL)
{
#if defined(HAVE_LIBCURL) && HAVE_LIBCURL
if (HAVE_LIBCURL)
{
#if defined(HAVE_LIBCURL) && HAVE_LIBCURL
@@
-132,7
+134,7
@@
bool GET::execute()
curl_easy_cleanup(curl);
curl_easy_cleanup(curl);
- return
retref == CURLE_OK
;
+ return
bool(retref == CURLE_OK)
;
#endif
}
#endif
}
@@
-155,6
+157,8
@@
bool POST::execute()
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, _response);
curl_easy_cleanup(curl);
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, _response);
curl_easy_cleanup(curl);
+
+ return bool(retref == CURLE_OK);
#endif
}
#endif
}