MemoryBlockUnix - use #if false on some unreachable code, fixes a warning

This commit is contained in:
adelikat 2020-03-19 09:05:07 -05:00
parent c731e1168e
commit 3dd0c18839
1 changed files with 2 additions and 0 deletions

View File

@ -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
}
/// <exception cref="InvalidOperationException"><see cref="MemoryBlockBase.Active"/> is <see langword="true"/> or failed to map memory</exception>