diff options
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index b1a234cb..377e712d 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -443,6 +443,7 @@ notify_completed_cb (void *cls, | |||
443 | void **con_cls, | 443 | void **con_cls, |
444 | enum MHD_RequestTerminationCode toe) | 444 | enum MHD_RequestTerminationCode toe) |
445 | { | 445 | { |
446 | (void)cls; (void)connection; /* Unused. Silent compiler warning. */ | ||
446 | if ( (toe != MHD_REQUEST_TERMINATED_COMPLETED_OK) && | 447 | if ( (toe != MHD_REQUEST_TERMINATED_COMPLETED_OK) && |
447 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && | 448 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && |
448 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) | 449 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) |
@@ -468,6 +469,8 @@ log_cb (void *cls, | |||
468 | struct MHD_Connection *connection) | 469 | struct MHD_Connection *connection) |
469 | { | 470 | { |
470 | pthread_t* ppth; | 471 | pthread_t* ppth; |
472 | (void)cls; (void)connection; /* Unused. Silent compiler warning. */ | ||
473 | |||
471 | if (0 != strcmp (uri, | 474 | if (0 != strcmp (uri, |
472 | "/")) | 475 | "/")) |
473 | abort (); | 476 | abort (); |
@@ -505,6 +508,7 @@ notify_connection_cb (void *cls, | |||
505 | enum MHD_ConnectionNotificationCode toe) | 508 | enum MHD_ConnectionNotificationCode toe) |
506 | { | 509 | { |
507 | static int started; | 510 | static int started; |
511 | (void)cls; (void)connection; /* Unused. Silent compiler warning. */ | ||
508 | 512 | ||
509 | switch (toe) | 513 | switch (toe) |
510 | { | 514 | { |
@@ -759,6 +763,7 @@ upgrade_cb (void *cls, | |||
759 | MHD_socket sock, | 763 | MHD_socket sock, |
760 | struct MHD_UpgradeResponseHandle *urh) | 764 | struct MHD_UpgradeResponseHandle *urh) |
761 | { | 765 | { |
766 | (void)cls; (void)connection; (void)con_cls; (void)extra_in; /* Unused. Silent compiler warning. */ | ||
762 | usock = wr_create_from_plain_sckt (sock); | 767 | usock = wr_create_from_plain_sckt (sock); |
763 | if (0 != extra_in_size) | 768 | if (0 != extra_in_size) |
764 | abort (); | 769 | abort (); |
@@ -821,6 +826,8 @@ ahc_upgrade (void *cls, | |||
821 | { | 826 | { |
822 | struct MHD_Response *resp; | 827 | struct MHD_Response *resp; |
823 | int ret; | 828 | int ret; |
829 | (void)cls;(void)url;(void)method; /* Unused. Silent compiler warning. */ | ||
830 | (void)version;(void)upload_data;(void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
824 | 831 | ||
825 | if (NULL == *con_cls) | 832 | if (NULL == *con_cls) |
826 | abort (); | 833 | abort (); |
@@ -898,6 +905,7 @@ run_mhd_select_loop (struct MHD_Daemon *daemon) | |||
898 | static void | 905 | static void |
899 | run_mhd_poll_loop (struct MHD_Daemon *daemon) | 906 | run_mhd_poll_loop (struct MHD_Daemon *daemon) |
900 | { | 907 | { |
908 | (void)daemon; /* Unused. Silent compiler warning. */ | ||
901 | abort (); /* currently not implementable with existing MHD API */ | 909 | abort (); /* currently not implementable with existing MHD API */ |
902 | } | 910 | } |
903 | #endif /* HAVE_POLL */ | 911 | #endif /* HAVE_POLL */ |