Ignore:
Timestamp:
Jul 17, 2011, 2:34:33 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) fix minor compiler warning when compiling with assertions disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r12422 r12554  
    133133
    134134static bool
    135 tr_bitfieldIsValid( const tr_bitfield * b )
     135tr_bitfieldIsValid( const tr_bitfield * b UNUSED )
    136136{
    137137    assert( b != NULL );
     
    195195    if( b->alloc_count < bytes_needed )
    196196    {
     197#ifndef NDEBUG
    197198        const size_t old_count = countArray( b );
     199#endif
    198200        b->bits = tr_renew( uint8_t, b->bits, bytes_needed );
    199201        memset( b->bits + b->alloc_count, 0, bytes_needed - b->alloc_count );
Note: See TracChangeset for help on using the changeset viewer.