1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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

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 )