From 600527dde76f1fa377fcd9bd8c127e506b51792b Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 21 Mar 2018 15:05:33 +0800 Subject: [PATCH] apps/http: httpd: Fix unused parameter warning if !LWIP_HTTPD_SUPPORT_V09 Signed-off-by: Axel Lin --- src/apps/http/httpd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/http/httpd.c b/src/apps/http/httpd.c index e5465cd0..c918577b 100644 --- a/src/apps/http/httpd.c +++ b/src/apps/http/httpd.c @@ -2290,6 +2290,9 @@ static err_t http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri, u8_t tag_check, char *params) { +#if !LWIP_HTTPD_SUPPORT_V09 + LWIP_UNUSED_ARG(is_09); +#endif if (file != NULL) { /* file opened, initialise struct http_state */ #if !LWIP_HTTPD_DYNAMIC_FILE_READ