Bug 972693 - Explicitly ignore return values from moz_posix_memalign, r=glandium

This commit is contained in:
Michael Wu 2014-02-14 02:15:44 -05:00
parent 6e561084ad
commit 01ca9b9c89
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}