]> granicus.if.org Git - transmission/commitdiff
silence a minor compiler warning when building with -DNDEBUG
authorJordan Lee <jordan@transmissionbt.com>
Fri, 5 Aug 2011 17:03:34 +0000 (17:03 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 5 Aug 2011 17:03:34 +0000 (17:03 +0000)
libtransmission/torrent.c

index 45023051d84f720a6dfe9c623b42284266f4bd29..2ccedf661b6710fff13e12a29763bdbdd56c27df 100644 (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 )