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:
parent
9386563e5e
commit
fbc2eb1a65
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue