From 1bb8b301122e773d27ef0e0705738e71c4a65577 Mon Sep 17 00:00:00 2001 From: vlad0x00 Date: Mon, 20 Dec 2021 11:46:37 -0800 Subject: [PATCH] Allow deprecated vfork --- Common/Uncompress.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Common/Uncompress.cpp b/Common/Uncompress.cpp index 1670152c8..2e23618c3 100644 --- a/Common/Uncompress.cpp +++ b/Common/Uncompress.cpp @@ -85,7 +85,10 @@ static int uncompress(const char *path) * sysctl vm.overcommit_memory=1 */ #if HAVE_WORKING_VFORK - pid_t pid = vfork(); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + pid_t pid = vfork(); +#pragma GCC diagnostic pop #else pid_t pid = fork(); #endif