Common: unused-result warning fix

pull/3009/head
Stenzek 2 years ago
parent 56d95c3331
commit fc96c2f656

@ -72,8 +72,7 @@ ALWAYS_INLINE static void* AlignedMalloc(size_t size, size_t alignment)
size = (size + alignment - 1) & ~(alignment - 1); size = (size + alignment - 1) & ~(alignment - 1);
#endif #endif
void* ret = nullptr; void* ret = nullptr;
posix_memalign(&ret, alignment, size); return (posix_memalign(&ret, alignment, size) == 0) ? ret : nullptr;
return ret;
#endif #endif
} }

Loading…
Cancel
Save