mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
fix posix_memalign return value warning
This commit is contained in:
parent
177500f37e
commit
7c4f9ecf0c
@ -78,7 +78,8 @@ inline void* ei_aligned_malloc(size_t size)
|
||||
#ifdef EIGEN_EXCEPTIONS
|
||||
const int failed =
|
||||
#endif
|
||||
posix_memalign(&result, 16, size);
|
||||
if(posix_memalign(&result, 16, size))
|
||||
result = 0;
|
||||
#else
|
||||
#if !EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
result = malloc(size);
|
||||
|
Loading…
Reference in New Issue
Block a user