diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-30 21:36:27 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-30 21:36:27 +0300 |
commit | 8da22ca0612e633aa76f145b879d83833dbdcdfe (patch) | |
tree | b46994df8d3fc2ae5d474363eeb5efc1b934fe4b /src/testcurl/perf_get_concurrent.c | |
parent | 80ff0e15965e75532e9cd127bf06ec20ee4f1816 (diff) | |
download | libmicrohttpd-8da22ca0612e633aa76f145b879d83833dbdcdfe.tar.gz libmicrohttpd-8da22ca0612e633aa76f145b879d83833dbdcdfe.zip |
Silenced compiler warnings in src/testcurl.
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r-- | src/testcurl/perf_get_concurrent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c index d234b720..49ed1ba4 100644 --- a/src/testcurl/perf_get_concurrent.c +++ b/src/testcurl/perf_get_concurrent.c | |||
@@ -134,6 +134,7 @@ copyBuffer (void *ptr, | |||
134 | size_t size, size_t nmemb, | 134 | size_t size, size_t nmemb, |
135 | void *ctx) | 135 | void *ctx) |
136 | { | 136 | { |
137 | (void)ptr;(void)ctx; /* Unused. Silent compiler warning. */ | ||
137 | return size * nmemb; | 138 | return size * nmemb; |
138 | } | 139 | } |
139 | 140 | ||
@@ -150,6 +151,8 @@ ahc_echo (void *cls, | |||
150 | static int ptr; | 151 | static int ptr; |
151 | const char *me = cls; | 152 | const char *me = cls; |
152 | int ret; | 153 | int ret; |
154 | (void)url;(void)version; /* Unused. Silent compiler warning. */ | ||
155 | (void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
153 | 156 | ||
154 | if (0 != strcmp (me, method)) | 157 | if (0 != strcmp (me, method)) |
155 | return MHD_NO; /* unexpected method */ | 158 | return MHD_NO; /* unexpected method */ |
@@ -455,6 +458,7 @@ main (int argc, char *const *argv) | |||
455 | { | 458 | { |
456 | unsigned int errorCount = 0; | 459 | unsigned int errorCount = 0; |
457 | int port = 1100; | 460 | int port = 1100; |
461 | (void)argc; /* Unused. Silent compiler warning. */ | ||
458 | 462 | ||
459 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 463 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? |
460 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 464 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; |