Common: unused-result warning fix
This commit is contained in:
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…
Reference in New Issue