From d9333ff8a007bf93c5566bbda1362b70ce547e05 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Feb 2022 15:44:57 +0100 Subject: fix build error with GCC 12 using workaround to https://github.com/nginx/unit/issues/639 --- unit-gcc12.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 unit-gcc12.patch (limited to 'unit-gcc12.patch') 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) + { -- cgit