summaryrefslogtreecommitdiffstats
path: root/unit-gcc12.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-02-11 15:44:57 +0100
committerRemi Collet <remi@php.net>2022-02-11 15:44:57 +0100
commitd9333ff8a007bf93c5566bbda1362b70ce547e05 (patch)
tree46e66324a76479b05d207f6662d971d06fafdd97 /unit-gcc12.patch
parent423f98550f2c5c567bce20f274f6b33ed4f2f1da (diff)
fix build error with GCC 12 using workaround to
https://github.com/nginx/unit/issues/639
Diffstat (limited to 'unit-gcc12.patch')
-rw-r--r--unit-gcc12.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit-gcc12.patch b/unit-gcc12.patch
new file mode 100644
index 0000000..f62ea5d
--- /dev/null
+++ b/unit-gcc12.patch
@@ -0,0 +1,12 @@
+diff -up ./src/nxt_malloc.c.old ./src/nxt_malloc.c
+--- ./src/nxt_malloc.c.old 2022-02-11 15:39:10.953121985 +0100
++++ ./src/nxt_malloc.c 2022-02-11 15:39:14.419109057 +0100
+@@ -61,6 +61,8 @@ nxt_zalloc(size_t size)
+ }
+
+
++# pragma GCC diagnostic ignored "-Wuse-after-free"
++
+ void *
+ nxt_realloc(void *p, size_t size)
+ {