From f7fa33f2d618206e6388cc023d17ceb6a04d6af2 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 31 Jan 2013 15:29:29 -0600 Subject: Fix remaining compiler warnings. --- Source/Core/Common/Src/MemoryUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/Common/Src/MemoryUtil.cpp') diff --git a/Source/Core/Common/Src/MemoryUtil.cpp b/Source/Core/Common/Src/MemoryUtil.cpp index ebfa380be4..0888746d42 100644 --- a/Source/Core/Common/Src/MemoryUtil.cpp +++ b/Source/Core/Common/Src/MemoryUtil.cpp @@ -117,7 +117,8 @@ void* AllocateAlignedMemory(size_t size,size_t alignment) void* ptr = _aligned_malloc(size,alignment); #else void* ptr = NULL; - posix_memalign(&ptr, alignment, size); + if (posix_memalign(&ptr, alignment, size) != 0) + ERROR_LOG(MEMMAP, "Failed to allocate aligned memory"); ; #endif -- cgit v1.2.3