mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-22 21:04:28 +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
|
#ifdef EIGEN_EXCEPTIONS
|
||||||
const int failed =
|
const int failed =
|
||||||
#endif
|
#endif
|
||||||
posix_memalign(&result, 16, size);
|
if(posix_memalign(&result, 16, size))
|
||||||
|
result = 0;
|
||||||
#else
|
#else
|
||||||
#if !EIGEN_ARCH_WANTS_ALIGNMENT
|
#if !EIGEN_ARCH_WANTS_ALIGNMENT
|
||||||
result = malloc(size);
|
result = malloc(size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user