(trunk libT) Fix posix_memalign() unused result warning. inspired by ijuxda's 08b0c5b

This commit is contained in:
Jordan Lee 2011-01-06 02:17:22 +00:00
parent d18b1bda05
commit 35cf5e4a32
1 changed files with 2 additions and 1 deletions

View File

@ -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 )