aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/http/http_public.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c
index 7900aa7f..e493a994 100644
--- a/src/supplemental/http/http_public.c
+++ b/src/supplemental/http/http_public.c
@@ -608,6 +608,9 @@ nng_http_handler_collect_body(nng_http_handler *h, bool want, size_t len)
nni_http_handler_collect_body(h, want, len);
return (0);
#else
+ NNI_ARG_UNUSED(h);
+ NNI_ARG_UNUSED(want);
+ NNI_ARG_UNUSED(len);
return (NNG_ENOTSUP);
#endif
}
@@ -926,6 +929,8 @@ nng_http_req_reset(nng_http_req *req)
{
#ifdef NNG_SUPP_HTTP
nni_http_req_reset(req);
+#else
+ NNI_ARG_UNUSED(req);
#endif
}
@@ -934,5 +939,7 @@ nng_http_res_reset(nng_http_res *res)
{
#ifdef NNG_SUPP_HTTP
nni_http_res_reset(res);
+#else
+ NNI_ARG_UNUSED(res);
#endif
}