Bug 1392594 Make variable DebugOnly to address unused variable warning r=glandium

MozReview-Commit-ID: 1qQQGjeWeel

--HG--
extra : rebase_source : f527762cc8d0b572c5315d2a6a11db8e69fbc999
This commit is contained in:
Tom Ritter 2017-08-24 22:55:35 -05:00
parent 9255b00013
commit 1243cb04e0

View File

@ -4,6 +4,7 @@
#include "VolatileBuffer.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/mozalloc.h"
#include "mozilla/WindowsVersion.h"
@ -119,11 +120,11 @@ VolatileBuffer::Unlock()
return;
}
void* addr = VirtualAllocEx(GetCurrentProcess(),
mBuf,
mSize,
MEM_RESET,
PAGE_READWRITE);
DebugOnly<void*> addr = VirtualAllocEx(GetCurrentProcess(),
mBuf,
mSize,
MEM_RESET,
PAGE_READWRITE);
MOZ_ASSERT(addr, "Failed to MEM_RESET");
}