apps/http: httpd: Fix unused parameter warning if !LWIP_HTTPD_SUPPORT_V09

Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-03-21 15:05:33 +08:00
parent e19d908f0e
commit 600527dde7

View File

@ -2290,6 +2290,9 @@ static err_t
http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri, http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri,
u8_t tag_check, char *params) u8_t tag_check, char *params)
{ {
#if !LWIP_HTTPD_SUPPORT_V09
LWIP_UNUSED_ARG(is_09);
#endif
if (file != NULL) { if (file != NULL) {
/* file opened, initialise struct http_state */ /* file opened, initialise struct http_state */
#if !LWIP_HTTPD_DYNAMIC_FILE_READ #if !LWIP_HTTPD_DYNAMIC_FILE_READ