nginxModules.zip.tests.nginx: fix build with gcc 16 (#571169)

This commit is contained in:
Maximilian Bosch
2026-10-09 06:38:55 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/ngx_http_zip_module.c b/ngx_http_zip_module.c
index 49a7703..0629c43 100644
--- a/ngx_http_zip_module.c
+++ b/ngx_http_zip_module.c
@@ -1006,6 +1006,8 @@ ngx_http_zip_send_pieces(ngx_http_request_t *r,
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"mod_zip: sent %d pieces, last rc = %d", pieces_sent, rc);
+ (void)pieces_sent;
+
if (rc == NGX_OK) {
ctx->trailer_sent = 1;
return ngx_http_send_special(r, NGX_HTTP_LAST);

View File

@@ -18,6 +18,8 @@ mkNginxPlugin (finalAttrs: {
};
patches = [
# https://github.com/evanmiller/mod_zip/pull/120
./fix-gcc16-unused-counter.patch
(fetchpatch {
name = "fix-upstream-subrequest-crc-calculation.patch";
url = "https://github.com/evanmiller/mod_zip/commit/8e65b82c82c7890f67a6107271c127e9881b6313.patch";