mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 10:45:42 -04:00
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…
x
Reference in New Issue
Block a user