diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-20 14:39:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-20 14:39:35 +0200 |
commit | 73380b54a12b5b4bc49d8f944e89c8c5b5c1a4fb (patch) | |
tree | 7554ad418bae9af9292909b77a760d0e481e2d0e /src/testcurl/test_callback.c | |
parent | c4d1c422f3fa9303e879dd60134394097cc7c8b0 (diff) | |
download | libmicrohttpd-73380b54a12b5b4bc49d8f944e89c8c5b5c1a4fb.tar.gz libmicrohttpd-73380b54a12b5b4bc49d8f944e89c8c5b5c1a4fb.zip |
eliminate compiler warnings
Diffstat (limited to 'src/testcurl/test_callback.c')
-rw-r--r-- | src/testcurl/test_callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcurl/test_callback.c b/src/testcurl/test_callback.c index 2323217b..34bf8679 100644 --- a/src/testcurl/test_callback.c +++ b/src/testcurl/test_callback.c | |||
@@ -38,8 +38,9 @@ static ssize_t | |||
38 | called_twice(void *cls, uint64_t pos, char *buf, size_t max) | 38 | called_twice(void *cls, uint64_t pos, char *buf, size_t max) |
39 | { | 39 | { |
40 | struct callback_closure *cls2 = cls; | 40 | struct callback_closure *cls2 = cls; |
41 | (void)pos; /* Unused. Silent compiler warning. */ | ||
42 | 41 | ||
42 | (void) pos; /* Unused. Silence compiler warning. */ | ||
43 | (void) max; | ||
43 | if (cls2->called == 0) | 44 | if (cls2->called == 0) |
44 | { | 45 | { |
45 | memcpy(buf, "test", 5); | 46 | memcpy(buf, "test", 5); |