mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) Fix posix_memalign() unused result warning. inspired by ijuxda's 08b0c5b
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user