mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
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:
parent
9255b00013
commit
1243cb04e0
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user