From 3dd0c1883961b847d79b6c49f5632071a9aa632e Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 19 Mar 2020 09:05:07 -0500 Subject: [PATCH] MemoryBlockUnix - use #if false on some unreachable code, fixes a warning --- BizHawk.BizInvoke/MemoryBlockUnix.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BizHawk.BizInvoke/MemoryBlockUnix.cs b/BizHawk.BizInvoke/MemoryBlockUnix.cs index 059a8b0ace..3200222e67 100644 --- a/BizHawk.BizInvoke/MemoryBlockUnix.cs +++ b/BizHawk.BizInvoke/MemoryBlockUnix.cs @@ -16,8 +16,10 @@ namespace BizHawk.BizInvoke public MemoryBlockUnix(ulong start, ulong size) : base(start, size) { throw new NotImplementedException($"{nameof(MemoryBlockUnix)} ctor"); + #if false _fd = memfd_create("MemoryBlockUnix", 0); if (_fd == -1) throw new InvalidOperationException($"{nameof(memfd_create)}() returned -1"); + #endif } /// is or failed to map memory