From: RĂ©mi Duraffort Date: Fri, 14 Nov 2008 19:50:03 +0000 (+0100) Subject: Revert "Fix compilation warning when compiling without --enable-debug." X-Git-Tag: 1.0.0-pre1~2165 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=95561f29f5795b1876829b76ff464d2f02fef30c;p=vlc Revert "Fix compilation warning when compiling without --enable-debug." This commit breaks 'make check'. This reverts commit c87ca8bb3ad9da57f15b311d4b688215e0a2f461. --- diff --git a/include/vlc_variables.h b/include/vlc_variables.h index d7a38ced09..b43a44d25e 100644 --- a/include/vlc_variables.h +++ b/include/vlc_variables.h @@ -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 } /**