]> git.sesse.net Git - vlc/commitdiff
Don't use assert() here.
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 1 May 2008 19:27:06 +0000 (22:27 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 1 May 2008 19:27:06 +0000 (22:27 +0300)
If it's really wanted, functions should de inlined

include/vlc_common.h

index e7097f2f5c97f9fee03b1aaac2f2dbefe7357897..1341493cb922f75ac2d5c097a678b4a6969186a0 100644 (file)
@@ -552,12 +552,8 @@ struct gc_object_t
             VLC_GC_MEMBERS
 };
 
-#include <assert.h> /* FIXME: should not be included here */
-
 static inline void __vlc_gc_incref( gc_object_t * p_gc )
 {
-    assert( p_gc->i_gc_refcount > 0 );
-
     p_gc->i_gc_refcount ++;
 };
 
@@ -565,8 +561,6 @@ static inline void __vlc_gc_decref( gc_object_t *p_gc )
 {
     if( !p_gc ) return;
 
-    assert( p_gc->i_gc_refcount > 0 );
-
     p_gc->i_gc_refcount -- ;
 
     if( p_gc->i_gc_refcount == 0 )