Skip to content

Commit 690ee72

Browse files
authored
chore: fix 'set but unused' warning (#19)
1 parent 5c2d748 commit 690ee72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

patch/1.19.3/nginx-client_max_body_size.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ index 6388140..b900467 100644
2626
&& clcf->client_max_body_size
2727
&& clcf->client_max_body_size < r->headers_in.content_length_n)
2828
diff --git src/http/ngx_http_request_body.c src/http/ngx_http_request_body.c
29-
index 71d7e9a..2844be9 100644
29+
index 71d7e9a..99fcbad 100644
3030
--- src/http/ngx_http_request_body.c
3131
+++ src/http/ngx_http_request_body.c
3232
@@ -8,6 +8,9 @@
@@ -76,11 +76,13 @@ index 71d7e9a..2844be9 100644
7676
for (cl = in; cl; cl = cl->next) {
7777

7878
b = NULL;
79-
@@ -1048,8 +1074,13 @@ ngx_http_request_body_chunked_filter(ngx_http_request_t *r, ngx_chain_t *in)
79+
@@ -1048,8 +1074,15 @@ ngx_http_request_body_chunked_filter(ngx_http_request_t *r, ngx_chain_t *in)
8080

8181
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
8282

8383
+#if (NGX_HTTP_APISIX)
84+
+ (void) clcf; /* unused */
85+
+
8486
+ if (max_body_size
8587
+ && max_body_size
8688
+#else

0 commit comments

Comments
 (0)