]> granicus.if.org Git - curl/commitdiff
CURLOPT_DEBUGFUNCTION.3: unused argument warning (#1056)
authorRainer Müller <raimue@codingfarm.de>
Thu, 6 Oct 2016 06:06:13 +0000 (08:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Oct 2016 06:06:13 +0000 (08:06 +0200)
The 'userp' argument is unused in this example code.

docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3

index bf07499a081ff14443f36b1d7001a64820b6c94a..535c5302b8d1391978027c68e51129e8e1bb933c 100644 (file)
@@ -119,6 +119,7 @@ int my_trace(CURL *handle, curl_infotype type,
 {
   const char *text;
   (void)handle; /* prevent compiler warning */
+  (void)userp;
 
   switch (type) {
   case CURLINFO_TEXT: