summarylogtreecommitdiffstats
path: root/unused-attr-corefx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unused-attr-corefx.patch')
-rw-r--r--unused-attr-corefx.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/unused-attr-corefx.patch b/unused-attr-corefx.patch
new file mode 100644
index 000000000000..75ba7c70c2fd
--- /dev/null
+++ b/unused-attr-corefx.patch
@@ -0,0 +1,26 @@
+From 39334d46be9c3184fef8f762135e65216cc4ee84 Mon Sep 17 00:00:00 2001
+From: Aaron Brodersen <aaron@abrodersen.com>
+Date: Wed, 13 Jul 2016 11:23:10 -0500
+Subject: [PATCH] Ignore unused return values
+
+Credit to Hazerd and leafi for identifying the issue and resolution.
+---
+ src/Native/System.Native/pal_process.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Native/System.Native/pal_process.cpp b/src/Native/System.Native/pal_process.cpp
+index 74c4335..e64205d 100644
+--- a/src/Native/System.Native/pal_process.cpp
++++ b/src/Native/System.Native/pal_process.cpp
+@@ -142,7 +142,7 @@ extern "C" int32_t SystemNative_ForkAndExecProcess(const char* filename,
+ // where the parent process uses members of Process, like ProcessName, when the Process
+ // is still the clone of this one. This is a best-effort attempt, so ignore any errors.
+ #if HAVE_PIPE2
+- pipe2(waitForChildToExecPipe, O_CLOEXEC);
++ (void)pipe2(waitForChildToExecPipe, O_CLOEXEC);
+ #endif
+
+ // Fork the child process
+--
+2.9.0
+