aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/largepost.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r--doc/examples/largepost.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index 1edf4d50..af6a48dd 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -128,6 +128,10 @@ iterate_post (void *coninfo_cls,
128{ 128{
129 struct connection_info_struct *con_info = coninfo_cls; 129 struct connection_info_struct *con_info = coninfo_cls;
130 FILE *fp; 130 FILE *fp;
131 (void)kind; /* Unused. Silent compiler warning. */
132 (void)content_type; /* Unused. Silent compiler warning. */
133 (void)transfer_encoding; /* Unused. Silent compiler warning. */
134 (void)off; /* Unused. Silent compiler warning. */
131 135
132 if (0 != strcmp (key, "file")) 136 if (0 != strcmp (key, "file"))
133 { 137 {
@@ -178,6 +182,9 @@ request_completed (void *cls,
178 enum MHD_RequestTerminationCode toe) 182 enum MHD_RequestTerminationCode toe)
179{ 183{
180 struct connection_info_struct *con_info = *con_cls; 184 struct connection_info_struct *con_info = *con_cls;
185 (void)cls; /* Unused. Silent compiler warning. */
186 (void)connection; /* Unused. Silent compiler warning. */
187 (void)toe; /* Unused. Silent compiler warning. */
181 188
182 if (NULL == con_info) 189 if (NULL == con_info)
183 return; 190 return;
@@ -209,6 +216,10 @@ answer_to_connection (void *cls,
209 size_t *upload_data_size, 216 size_t *upload_data_size,
210 void **con_cls) 217 void **con_cls)
211{ 218{
219 (void)cls; /* Unused. Silent compiler warning. */
220 (void)url; /* Unused. Silent compiler warning. */
221 (void)version; /* Unused. Silent compiler warning. */
222
212 if (NULL == *con_cls) 223 if (NULL == *con_cls)
213 { 224 {
214 /* First call, setup data structures */ 225 /* First call, setup data structures */