diff options
Diffstat (limited to 'src/examples/refuse_post_example.c')
-rw-r--r-- | src/examples/refuse_post_example.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/examples/refuse_post_example.c b/src/examples/refuse_post_example.c index 8079f467..dad3beb1 100644 --- a/src/examples/refuse_post_example.c +++ b/src/examples/refuse_post_example.c | |||
@@ -45,6 +45,11 @@ ahc_echo (void *cls, | |||
45 | const char *me = cls; | 45 | const char *me = cls; |
46 | struct MHD_Response *response; | 46 | struct MHD_Response *response; |
47 | int ret; | 47 | int ret; |
48 | (void)cls; /* Unused. Silent compiler warning. */ | ||
49 | (void)url; /* Unused. Silent compiler warning. */ | ||
50 | (void)version; /* Unused. Silent compiler warning. */ | ||
51 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
52 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
48 | 53 | ||
49 | if ((0 != strcmp (method, "GET")) && (0 != strcmp (method, "POST"))) | 54 | if ((0 != strcmp (method, "GET")) && (0 != strcmp (method, "POST"))) |
50 | return MHD_NO; /* unexpected method */ | 55 | return MHD_NO; /* unexpected method */ |