diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-09-29 13:29:23 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-09-29 22:07:49 +0300 |
commit | a5b63e992bb1d45982269cd4be4d8990414acc17 (patch) | |
tree | b2ecaa5b0342c4745b3a91e2211f3b06dc0b82d0 /doc/examples/logging.c | |
parent | 527700a01e67e35781a4ba789a43e4d982dd5b25 (diff) | |
download | libmicrohttpd-a5b63e992bb1d45982269cd4be4d8990414acc17.tar.gz libmicrohttpd-a5b63e992bb1d45982269cd4be4d8990414acc17.zip |
Muted compiler warnings in examples.
Diffstat (limited to 'doc/examples/logging.c')
-rw-r--r-- | doc/examples/logging.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/logging.c b/doc/examples/logging.c index aff21426..239fbe7d 100644 --- a/doc/examples/logging.c +++ b/doc/examples/logging.c | |||
@@ -18,6 +18,8 @@ static int | |||
18 | print_out_key (void *cls, enum MHD_ValueKind kind, const char *key, | 18 | print_out_key (void *cls, enum MHD_ValueKind kind, const char *key, |
19 | const char *value) | 19 | const char *value) |
20 | { | 20 | { |
21 | (void)cls; /* Unused. Silent compiler warning. */ | ||
22 | (void)kind; /* Unused. Silent compiler warning. */ | ||
21 | printf ("%s: %s\n", key, value); | 23 | printf ("%s: %s\n", key, value); |
22 | return MHD_YES; | 24 | return MHD_YES; |
23 | } | 25 | } |
@@ -29,6 +31,11 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
29 | const char *version, const char *upload_data, | 31 | const char *version, const char *upload_data, |
30 | size_t *upload_data_size, void **con_cls) | 32 | size_t *upload_data_size, void **con_cls) |
31 | { | 33 | { |
34 | (void)cls; /* Unused. Silent compiler warning. */ | ||
35 | (void)version; /* Unused. Silent compiler warning. */ | ||
36 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
37 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
38 | (void)con_cls; /* Unused. Silent compiler warning. */ | ||
32 | printf ("New %s request for %s using version %s\n", method, url, version); | 39 | printf ("New %s request for %s using version %s\n", method, url, version); |
33 | 40 | ||
34 | MHD_get_connection_values (connection, MHD_HEADER_KIND, print_out_key, | 41 | MHD_get_connection_values (connection, MHD_HEADER_KIND, print_out_key, |