Ignore:
Timestamp:
Dec 28, 2009, 11:27:17 PM (11 years ago)
Author:
charles
Message:

(trunk libT) fix various minor compiler warnings that show up when you build libtransmission with NDEBUG defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ptrarray.c

    r9671 r9836  
    171171}
    172172
     173#ifdef NDEBUG
     174#define assertSortedAndUnique(a,b)
     175#else
    173176static void
    174177assertSortedAndUnique( const tr_ptrArray * t,
    175178                        int compare(const void*, const void*) )
    176179{
    177 #ifndef NDEBUG
    178180    int i;
    179181
    180182    for( i = 0; i < t->n_items - 2; ++i )
    181183        assert( compare( t->items[i], t->items[i + 1] ) <= 0 );
     184}
    182185#endif
    183 }
    184186
    185187int
Note: See TracChangeset for help on using the changeset viewer.