diff options
Diffstat (limited to 'doc/examples/simplepost.c')
-rw-r--r-- | doc/examples/simplepost.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c index a6c3a69d..a3bba94a 100644 --- a/doc/examples/simplepost.c +++ b/doc/examples/simplepost.c | |||
@@ -74,6 +74,11 @@ iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key, | |||
74 | size_t size) | 74 | size_t size) |
75 | { | 75 | { |
76 | struct connection_info_struct *con_info = coninfo_cls; | 76 | struct connection_info_struct *con_info = coninfo_cls; |
77 | (void)kind; /* Unused. Silent compiler warning. */ | ||
78 | (void)filename; /* Unused. Silent compiler warning. */ | ||
79 | (void)content_type; /* Unused. Silent compiler warning. */ | ||
80 | (void)transfer_encoding; /* Unused. Silent compiler warning. */ | ||
81 | (void)off; /* Unused. Silent compiler warning. */ | ||
77 | 82 | ||
78 | if (0 == strcmp (key, "name")) | 83 | if (0 == strcmp (key, "name")) |
79 | { | 84 | { |
@@ -101,6 +106,9 @@ request_completed (void *cls, struct MHD_Connection *connection, | |||
101 | void **con_cls, enum MHD_RequestTerminationCode toe) | 106 | void **con_cls, enum MHD_RequestTerminationCode toe) |
102 | { | 107 | { |
103 | struct connection_info_struct *con_info = *con_cls; | 108 | struct connection_info_struct *con_info = *con_cls; |
109 | (void)cls; /* Unused. Silent compiler warning. */ | ||
110 | (void)connection; /* Unused. Silent compiler warning. */ | ||
111 | (void)toe; /* Unused. Silent compiler warning. */ | ||
104 | 112 | ||
105 | if (NULL == con_info) | 113 | if (NULL == con_info) |
106 | return; | 114 | return; |
@@ -123,6 +131,10 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
123 | const char *version, const char *upload_data, | 131 | const char *version, const char *upload_data, |
124 | size_t *upload_data_size, void **con_cls) | 132 | size_t *upload_data_size, void **con_cls) |
125 | { | 133 | { |
134 | (void)cls; /* Unused. Silent compiler warning. */ | ||
135 | (void)url; /* Unused. Silent compiler warning. */ | ||
136 | (void)version; /* Unused. Silent compiler warning. */ | ||
137 | |||
126 | if (NULL == *con_cls) | 138 | if (NULL == *con_cls) |
127 | { | 139 | { |
128 | struct connection_info_struct *con_info; | 140 | struct connection_info_struct *con_info; |