]> git.sesse.net Git - vlc/commitdiff
Fix compilation warning when compiling without --enable-debug.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 13 Nov 2008 21:22:32 +0000 (22:22 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 13 Nov 2008 21:22:32 +0000 (22:22 +0100)
include/vlc_variables.h

index b43a44d25e618253f636d15c2c1a0558fd54911f..d7a38ced09e3ced0b4ee9f4c26cbec70add63307 100644 (file)
@@ -199,8 +199,12 @@ 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
 }
 
 /**