netutils/webserver/httpd.c: Eliminate some warnings found in build testing.

This commit is contained in:
Gregory Nutt 2018-11-25 18:43:09 -06:00
parent 7ddbe8c235
commit 3adf8af266

View File

@ -339,6 +339,7 @@ static int handle_script(struct httpd_state *pstate)
pstate->ht_file.len,
chunked_http_tx);
DEBUGASSERT(status >= 0);
UNUSED(status);
(void)httpd_close(&pstate->ht_file);
}
@ -399,6 +400,7 @@ static int handle_script(struct httpd_state *pstate)
pstate->ht_file.data,
len, chunked_http_tx);
DEBUGASSERT(status >= 0);
UNUSED(status);
pstate->ht_file.data += len;
pstate->ht_file.len -= len;
@ -410,6 +412,7 @@ static int handle_script(struct httpd_state *pstate)
status = httpd_send_datachunk(pstate->ht_sockfd, 0, 0, chunked_http_tx);
DEBUGASSERT(status >= 0);
UNUSED(status);
#endif
return OK;