(trunk libT) disable the sorted ptrArray assertions in non-mac release builds
This commit is contained in:
parent
3f00feef10
commit
e22922f682
|
@ -25,6 +25,7 @@ if test m4_substr(peer_id_prefix,6,1) = "0"; then
|
|||
CFLAGS="$CFLAGS -g -O3 "
|
||||
CXXFLAGS="$CXXFLAGS -g -O3 "
|
||||
fi
|
||||
CPPFLAGS="$CPPFLAGS -DNDEBUG"
|
||||
else
|
||||
supported_build=no
|
||||
if test "x$GCC" = "xyes" ; then
|
||||
|
|
|
@ -186,10 +186,12 @@ static void
|
|||
assertSortedAndUnique( const tr_ptrArray * t,
|
||||
int compare(const void*, const void*) )
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
int i;
|
||||
|
||||
for( i = 0; i < t->n_items - 2; ++i )
|
||||
assert( compare( t->items[i], t->items[i + 1] ) <= 0 );
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue