Skip to content

Commit 1bb8b30

Browse files
author
vlad0x00
committed
Allow deprecated vfork
1 parent 23a6e4f commit 1bb8b30

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Common/Uncompress.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ static int uncompress(const char *path)
8585
* sysctl vm.overcommit_memory=1
8686
*/
8787
#if HAVE_WORKING_VFORK
88-
pid_t pid = vfork();
88+
#pragma GCC diagnostic push
89+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
90+
pid_t pid = vfork();
91+
#pragma GCC diagnostic pop
8992
#else
9093
pid_t pid = fork();
9194
#endif

0 commit comments

Comments
 (0)