[vlc-devel] commit: Revert " Fix compilation warning when compiling without --enable-debug." ( Rémi Duraffort )

git version control git at videolan.org
Fri Nov 14 21:01:55 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Nov 14 20:50:03 2008 +0100| [95561f29f5795b1876829b76ff464d2f02fef30c] | committer: Rémi Duraffort 

Revert "Fix compilation warning when compiling without --enable-debug."
This commit breaks 'make check'.

This reverts commit c87ca8bb3ad9da57f15b311d4b688215e0a2f461.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95561f29f5795b1876829b76ff464d2f02fef30c
---

 include/vlc_variables.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/vlc_variables.h b/include/vlc_variables.h
index d7a38ce..b43a44d 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
 }
 
 /**




More information about the vlc-devel mailing list