mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
nginxModules.zip.tests.nginx: fix build with gcc 16 (#571169)
This commit is contained in:
@@ -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);
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user