Commit c87ca8bb authored by Rémi Duraffort's avatar Rémi Duraffort

Fix compilation warning when compiling without --enable-debug.

parent fed7645e
...@@ -199,8 +199,12 @@ VLC_EXPORT( int, __var_TriggerCallback, ( vlc_object_t *, const char * ) ); ...@@ -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, static inline void __var_AssertType( vlc_object_t *p_obj, const char *psz_name,
int i_expected ) int i_expected )
{ {
#ifndef NDEBUG
const int i_type = __var_Type( p_obj, psz_name ) & VLC_VAR_CLASS; const int i_type = __var_Type( p_obj, psz_name ) & VLC_VAR_CLASS;
assert( i_type == 0 || i_type == (i_expected&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
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment