Changeset 11810


Ignore:
Timestamp:
Feb 2, 2011, 5:18:33 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) silence some unused variable warnings from gcc when building with -DNDEBUG

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11803 r11810  
    773773    const int vecCount = evbuffer_peek( buf, byteCount, NULL, NULL, 0 );
    774774    struct evbuffer_iovec * iovec = tr_new0( struct evbuffer_iovec, vecCount );
    775     const int n = evbuffer_peek( buf, byteCount, NULL, iovec, vecCount );
    776     assert( vecCount == n );
     775    assert( vecCount == evbuffer_peek( buf, byteCount, NULL, iovec, vecCount ) );
    777776    *setme_vecCount = vecCount;
    778777    return iovec;
  • trunk/libtransmission/tr-dht.c

    r11665 r11810  
    587587               void *sv )
    588588{
    589     tr_session *ss = (tr_session*)sv;
    590589    time_t tosleep;
    591590    int rc;
    592591
    593     assert(tr_isSession(ss));
     592    assert(tr_isSession(sv));
    594593
    595594    if(sv != session)
  • trunk/libtransmission/tr-udp.c

    r11752 r11810  
    113113
    114114static void
    115 event_callback(int s, short type, void *sv)
    116 {
    117     tr_session *ss = (tr_session*)sv;
     115event_callback(int s, short type UNUSED, void *sv)
     116{
    118117    unsigned char *buf;
    119118    struct sockaddr_storage from;
     
    121120    int rc;
    122121
    123     assert(tr_isSession(ss));
     122    assert(tr_isSession(sv));
    124123    assert(type == EV_READ);
    125124
Note: See TracChangeset for help on using the changeset viewer.