diff options
| author | Evgeny Ermakov <22344340+unspecd@users.noreply.github.com> | 2021-01-03 00:36:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-02 21:36:43 -0800 |
| commit | d5814d58496ff1fbbb2e6727ff8bffe78204223c (patch) | |
| tree | 01eb348dfbc685a3736ad2647bf31a09903fd27e /src | |
| parent | 6d5fcbbf4bac0639d531577786b158c24b60d9c6 (diff) | |
| download | nng-d5814d58496ff1fbbb2e6727ff8bffe78204223c.tar.gz nng-d5814d58496ff1fbbb2e6727ff8bffe78204223c.tar.bz2 nng-d5814d58496ff1fbbb2e6727ff8bffe78204223c.zip | |
Fix compilation warnings (#1397)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/dialer.c | 3 | ||||
| -rw-r--r-- | src/core/listener.c | 3 | ||||
| -rw-r--r-- | src/supplemental/http/http_public.c | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c index 1f9a5e58..00d2c163 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -219,6 +219,9 @@ nni_dialer_bump_error(nni_dialer *d, int err) nni_stat_inc(&d->st_other, 1); break; } +#else + NNI_ARG_UNUSED(d); + NNI_ARG_UNUSED(err); #endif } diff --git a/src/core/listener.c b/src/core/listener.c index 13d5c6a6..32aa65ed 100644 --- a/src/core/listener.c +++ b/src/core/listener.c @@ -209,6 +209,9 @@ nni_listener_bump_error(nni_listener *l, int err) nni_stat_inc(&l->st_other, 1); break; } +#else + NNI_ARG_UNUSED(l); + NNI_ARG_UNUSED(err); #endif } 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 } |
