silence a minor compiler warning when building with -DNDEBUG

This commit is contained in:
Jordan Lee 2011-08-05 17:03:34 +00:00
parent 9386563e5e
commit fbc2eb1a65
1 changed files with 4 additions and 0 deletions

View File

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