Common: unused-result warning fix

This commit is contained in:
Stenzek 2023-09-05 22:58:11 +10:00
parent 56d95c3331
commit fc96c2f656

View file

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