Parcourir la source

test_options: muted compiler warning.

Evgeny Grin (Karlson2k) il y a 8 ans
Parent
commit
adf9e8cec4
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      src/testcurl/test_options.c

+ 10 - 0
src/testcurl/test_options.c

@@ -44,6 +44,15 @@ ahc_echo (void *cls,
           const char *upload_data, size_t *upload_data_size,
           void **unused)
 {
+  (void)cls;
+  (void)connection;
+  (void)url;
+  (void)method;
+  (void)version;
+  (void)upload_data;
+  (void)upload_data_size;
+  (void)unused;
+
   return 0;
 }
 
@@ -118,6 +127,7 @@ int
 main (int argc, char *const *argv)
 {
   unsigned int errorCount = 0;
+  (void)argc; (void)argv; /* Unused. Silent compiler warning. */
 
   errorCount += test_wrap_loc ("ip addr option", &test_ip_addr_option);