]> git.sesse.net Git - vlc/commitdiff
Revert "Fix compilation warning when compiling without --enable-debug."
authorRémi Duraffort <ivoire@videolan.org>
Fri, 14 Nov 2008 19:50:03 +0000 (20:50 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 14 Nov 2008 19:50:03 +0000 (20:50 +0100)
This commit breaks 'make check'.

This reverts commit c87ca8bb3ad9da57f15b311d4b688215e0a2f461.

include/vlc_variables.h

index d7a38ced09e3ced0b4ee9f4c26cbec70add63307..b43a44d25e618253f636d15c2c1a0558fd54911f 100644 (file)
@@ -199,12 +199,8 @@ VLC_EXPORT( int, __var_TriggerCallback, ( vlc_object_t *, const char * ) );
 static inline void __var_AssertType( vlc_object_t *p_obj, const char *psz_name,
                                      int i_expected )
 {
-#ifndef NDEBUG
     const int i_type = __var_Type( p_obj, psz_name ) & VLC_VAR_CLASS;
     assert( i_type == 0 || i_type == (i_expected&VLC_VAR_CLASS) );
-#else
-    (void)p_obj;    (void)psz_name;    (void)i_expected;
-#endif
 }
 
 /**