[vlc-devel] commit: Fix compilation warning when compiling without --enable-debug. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Nov 13 22:31:11 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Nov 13 22:22:32 2008 +0100| [c87ca8bb3ad9da57f15b311d4b688215e0a2f461] | committer: Rémi Duraffort
Fix compilation warning when compiling without --enable-debug.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c87ca8bb3ad9da57f15b311d4b688215e0a2f461
---
include/vlc_variables.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/vlc_variables.h b/include/vlc_variables.h
index b43a44d..d7a38ce 100644
--- a/include/vlc_variables.h
+++ b/include/vlc_variables.h
@@ -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
}
/**
More information about the vlc-devel
mailing list