silence a minor compiler warning when building with -DNDEBUG
This commit is contained in:
parent
9386563e5e
commit
fbc2eb1a65
|
@ -1496,7 +1496,9 @@ tr_torrentSetHasPiece( tr_torrent * tor,
|
|||
****
|
||||
***/
|
||||
|
||||
#ifndef NDEBUG
|
||||
static bool queueIsSequenced( tr_session * );
|
||||
#endif
|
||||
|
||||
static void
|
||||
freeTorrent( tr_torrent * tor )
|
||||
|
@ -3185,6 +3187,7 @@ compareTorrentByQueuePosition( const void * va, const void * vb )
|
|||
return a->queuePosition - b->queuePosition;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static bool
|
||||
queueIsSequenced( tr_session * session )
|
||||
{
|
||||
|
@ -3218,6 +3221,7 @@ queueIsSequenced( tr_session * session )
|
|||
tr_free( tmp );
|
||||
return is_sequenced;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
tr_torrentGetQueuePosition( const tr_torrent * tor )
|
||||
|
|
Loading…
Reference in New Issue