aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/sessions.c')
-rw-r--r--doc/examples/sessions.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c
index be4cf467..b5b25440 100644
--- a/doc/examples/sessions.c
+++ b/doc/examples/sessions.c
@@ -419,6 +419,8 @@ not_found_page (const void *cls,
419{ 419{
420 int ret; 420 int ret;
421 struct MHD_Response *response; 421 struct MHD_Response *response;
422 (void)cls; /* Unused. Silent compiler warning. */
423 (void)session; /* Unused. Silent compiler warning. */
422 424
423 /* unsupported HTTP method */ 425 /* unsupported HTTP method */
424 response = MHD_create_response_from_buffer (strlen (NOT_FOUND_ERROR), 426 response = MHD_create_response_from_buffer (strlen (NOT_FOUND_ERROR),
@@ -479,6 +481,10 @@ post_iterator (void *cls,
479{ 481{
480 struct Request *request = cls; 482 struct Request *request = cls;
481 struct Session *session = request->session; 483 struct Session *session = request->session;
484 (void)kind; /* Unused. Silent compiler warning. */
485 (void)filename; /* Unused. Silent compiler warning. */
486 (void)content_type; /* Unused. Silent compiler warning. */
487 (void)transfer_encoding; /* Unused. Silent compiler warning. */
482 488
483 if (0 == strcmp ("DONE", key)) 489 if (0 == strcmp ("DONE", key))
484 { 490 {
@@ -565,6 +571,8 @@ create_response (void *cls,
565 struct Session *session; 571 struct Session *session;
566 int ret; 572 int ret;
567 unsigned int i; 573 unsigned int i;
574 (void)cls; /* Unused. Silent compiler warning. */
575 (void)version; /* Unused. Silent compiler warning. */
568 576
569 request = *ptr; 577 request = *ptr;
570 if (NULL == request) 578 if (NULL == request)
@@ -664,6 +672,9 @@ request_completed_callback (void *cls,
664 enum MHD_RequestTerminationCode toe) 672 enum MHD_RequestTerminationCode toe)
665{ 673{
666 struct Request *request = *con_cls; 674 struct Request *request = *con_cls;
675 (void)cls; /* Unused. Silent compiler warning. */
676 (void)connection; /* Unused. Silent compiler warning. */
677 (void)toe; /* Unused. Silent compiler warning. */
667 678
668 if (NULL == request) 679 if (NULL == request)
669 return; 680 return;