mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 972693 - Explicitly ignore return values from moz_posix_memalign, r=glandium
This commit is contained in:
parent
6e561084ad
commit
01ca9b9c89
@ -29,7 +29,7 @@ bool VolatileBuffer::Init(size_t aSize, size_t aAlignment)
|
||||
#if defined(MOZ_MEMORY)
|
||||
posix_memalign(&mBuf, aAlignment, aSize);
|
||||
#elif defined(HAVE_POSIX_MEMALIGN)
|
||||
moz_posix_memalign(&mBuf, aAlignment, aSize);
|
||||
(void)moz_posix_memalign(&mBuf, aAlignment, aSize);
|
||||
#else
|
||||
#error "No memalign implementation found"
|
||||
#endif
|
||||
|
@ -46,7 +46,7 @@ VolatileBuffer::Init(size_t aSize, size_t aAlignment)
|
||||
}
|
||||
|
||||
heap_alloc:
|
||||
moz_posix_memalign(&mBuf, aAlignment, aSize);
|
||||
(void)moz_posix_memalign(&mBuf, aAlignment, aSize);
|
||||
mHeap = true;
|
||||
return !!mBuf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user