diff --git a/docs/examples/cacertinmem.c b/docs/examples/cacertinmem.c index 9b39667aff..ec12df58bf 100644 --- a/docs/examples/cacertinmem.c +++ b/docs/examples/cacertinmem.c @@ -72,8 +72,8 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer) int i; STACK_OF(X509_INFO) *inf; - (void)curl; /* avoid warnings */ - (void)pointer; /* avoid warnings */ + (void)curl; + (void)pointer; if(!cts || !cbio) { return rv; diff --git a/docs/examples/debug.c b/docs/examples/debug.c index 2bd8b971ac..5303c833f5 100644 --- a/docs/examples/debug.c +++ b/docs/examples/debug.c @@ -90,7 +90,7 @@ int my_trace(CURL *handle, curl_infotype type, { struct data *config = (struct data *)userp; const char *text; - (void)handle; /* prevent compiler warning */ + (void)handle; switch(type) { case CURLINFO_TEXT: diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index ac9b9a082e..954cdcbc6d 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -110,7 +110,7 @@ int my_trace(CURL *handle, curl_infotype type, const char *text; struct transfer *t = (struct transfer *)userp; unsigned int num = t->num; - (void)handle; /* prevent compiler warning */ + (void)handle; switch(type) { case CURLINFO_TEXT: diff --git a/docs/examples/http2-pushinmemory.c b/docs/examples/http2-pushinmemory.c index 53c368e012..873883ca50 100644 --- a/docs/examples/http2-pushinmemory.c +++ b/docs/examples/http2-pushinmemory.c @@ -97,8 +97,8 @@ static int server_push_callback(CURL *parent, { char *headp; int *transfers = (int *)userp; - (void)parent; /* we have no use for this */ - (void)num_headers; /* unused */ + (void)parent; + (void)num_headers; if(pushindex == MAX_FILES) /* cannot fit anymore */ diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c index e259e14979..df4e49ea58 100644 --- a/docs/examples/http2-serverpush.c +++ b/docs/examples/http2-serverpush.c @@ -92,7 +92,7 @@ int my_trace(CURL *handle, curl_infotype type, void *userp) { const char *text; - (void)handle; /* prevent compiler warning */ + (void)handle; (void)userp; switch(type) { case CURLINFO_TEXT: @@ -171,7 +171,7 @@ static int server_push_callback(CURL *parent, FILE *out; static unsigned int count = 0; - (void)parent; /* we have no use for this */ + (void)parent; curl_msnprintf(filename, 128, "push%u", count++); diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index c033b0b685..482889ea18 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -150,7 +150,7 @@ int my_trace(CURL *handle, curl_infotype type, struct timeval tv; time_t secs; struct tm *now; - (void)handle; /* prevent compiler warning */ + (void)handle; gettimeofday(&tv, NULL); if(!known_offset) { diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c index 79123ca224..738732279d 100644 --- a/docs/examples/multi-debugcallback.c +++ b/docs/examples/multi-debugcallback.c @@ -91,7 +91,7 @@ int my_trace(CURL *handle, curl_infotype type, const char *text; (void)userp; - (void)handle; /* prevent compiler warning */ + (void)handle; switch(type) { case CURLINFO_TEXT: diff --git a/docs/examples/threaded-ssl.c b/docs/examples/threaded-ssl.c index 9668129055..161182eec1 100644 --- a/docs/examples/threaded-ssl.c +++ b/docs/examples/threaded-ssl.c @@ -72,7 +72,7 @@ int main(int argc, char **argv) { pthread_t tid[NUMT]; int i; - (void)argc; /* we do not use any arguments in this example */ + (void)argc; (void)argv; /* Must initialize libcurl before any threads are started */ diff --git a/docs/examples/usercertinmem.c b/docs/examples/usercertinmem.c index 536b65b490..670ae4dc71 100644 --- a/docs/examples/usercertinmem.c +++ b/docs/examples/usercertinmem.c @@ -93,8 +93,8 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" "-----END RSA PRIVATE KEY-----\n"; - (void)curl; /* avoid warnings */ - (void)pointer; /* avoid warnings */ + (void)curl; + (void)pointer; /* get a BIO */ bio = BIO_new_mem_buf((char *)mypem, -1);