From 49fcad8f65762f9a59c440d8bb8fc002f45d251e Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 14 Feb 2012 21:25:06 +0100 Subject: [PATCH] Fixed warning about unused http_continue() --- apps/httpserver_raw/httpd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/httpserver_raw/httpd.c b/apps/httpserver_raw/httpd.c index fb6d8a1..3bd97cd 100644 --- a/apps/httpserver_raw/httpd.c +++ b/apps/httpserver_raw/httpd.c @@ -384,7 +384,9 @@ static err_t http_close_conn(struct tcp_pcb *pcb, struct http_state *hs); static err_t http_find_file(struct http_state *hs, const char *uri, int is_09); static err_t http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri); static err_t http_poll(void *arg, struct tcp_pcb *pcb); +#if LWIP_HTTPD_FS_ASYNC_READ static void http_continue(void *connection); +#endif /* LWIP_HTTPD_FS_ASYNC_READ */ #if LWIP_HTTPD_SSI /* SSI insert handler function pointer. */ @@ -1806,6 +1808,7 @@ void httpd_post_data_recved(void *connection, u16_t recved_len) #endif /* LWIP_HTTPD_SUPPORT_POST */ +#if LWIP_HTTPD_FS_ASYNC_READ /** Try to send more data if file has been blocked before * This is a callback function passed to fs_read_async(). */ @@ -1823,6 +1826,7 @@ http_continue(void *connection) } } } +#endif /* LWIP_HTTPD_FS_ASYNC_READ */ /** * When data has been received in the correct state, try to parse it