1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

(trunk libT) silence minor "unused function argument" compiler warning

This commit is contained in:
Jordan Lee 2011-02-07 23:09:36 +00:00
parent 61d999dfdd
commit 2b905bdbcc
3 changed files with 5 additions and 6 deletions

View file

@ -698,12 +698,12 @@ addTorrentToTier( tr_torrent_tiers * tiers,
} }
tr_torrent_tiers * tr_torrent_tiers *
tr_announcerAddTorrent( tr_announcer * announcer, tr_torrent * tor, tr_announcerAddTorrent( tr_torrent * tor,
tr_tracker_callback * callback, void * callbackData ) tr_tracker_callback * callback,
void * callbackData )
{ {
tr_torrent_tiers * tiers; tr_torrent_tiers * tiers;
assert( announcer != NULL );
assert( tr_isTorrent( tor ) ); assert( tr_isTorrent( tor ) );
tiers = tiersNew( ); tiers = tiersNew( );

View file

@ -72,8 +72,7 @@ void tr_announcerClose( tr_session * );
*** For torrent customers *** For torrent customers
**/ **/
struct tr_torrent_tiers * tr_announcerAddTorrent( struct tr_announcer *, struct tr_torrent_tiers * tr_announcerAddTorrent( tr_torrent * torrent,
tr_torrent * torrent,
tr_tracker_callback * cb, tr_tracker_callback * cb,
void * cbdata ); void * cbdata );

View file

@ -894,7 +894,7 @@ torrentInit( tr_torrent * tor, const tr_ctor * ctor )
} }
} }
tor->tiers = tr_announcerAddTorrent( tor->session->announcer, tor, onTrackerResponse, NULL ); tor->tiers = tr_announcerAddTorrent( tor, onTrackerResponse, NULL );
if( isNewTorrent ) if( isNewTorrent )
{ {