(trunk libT) Fix posix_memalign() unused result warning. inspired by ijuxda's 08b0c5b
This commit is contained in:
parent
d18b1bda05
commit
35cf5e4a32
|
@ -1624,7 +1624,8 @@ tr_valloc( size_t bufLen )
|
|||
|
||||
#ifdef HAVE_POSIX_MEMALIGN
|
||||
if( !buf )
|
||||
posix_memalign( &buf, pageSize, allocLen );
|
||||
if( posix_memalign( &buf, pageSize, allocLen ) )
|
||||
buf = NULL; /* just retry with valloc/malloc */
|
||||
#endif
|
||||
#ifdef HAVE_VALLOC
|
||||
if( !buf )
|
||||
|
|
Loading…
Reference in New Issue