summaryrefslogtreecommitdiffstats
path: root/unit-gcc12.patch
diff options
context:
space:
mode:
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)
+ {