aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib540.c3
-rw-r--r--tests/libtest/lib560.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index 6647ab399..8fb409f07 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -76,7 +76,6 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
struct curl_slist *headers)
{
CURLMsg *msg;
- CURLMcode code;
long L;
int M, Q, U = -1;
fd_set R, W, E;
@@ -87,7 +86,7 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
while (U) {
- code = curl_multi_perform(cm, &U);
+ (void) curl_multi_perform(cm, &U);
if (U) {
FD_ZERO(&R);
diff --git a/tests/libtest/lib560.c b/tests/libtest/lib560.c
index 851d5d193..a91d863ab 100644
--- a/tests/libtest/lib560.c
+++ b/tests/libtest/lib560.c
@@ -37,7 +37,6 @@ int test(char *URL)
{
CURL *http_handle;
CURLM *multi_handle = NULL;
- CURLMcode code;
int res;
int still_running; /* keep number of running handles */
@@ -63,7 +62,7 @@ int test(char *URL)
curl_multi_add_handle(multi_handle, http_handle);
/* we start some action by calling perform right away */
- code = curl_multi_perform(multi_handle, &still_running);
+ (void) curl_multi_perform(multi_handle, &still_running);
while(still_running) {
struct timeval timeout;
@@ -98,7 +97,7 @@ int test(char *URL)
case 0:
default:
/* timeout or readable/writable sockets */
- code = curl_multi_perform(multi_handle, &still_running);
+ (void) curl_multi_perform(multi_handle, &still_running);
break;
}
}