[vlc-commits] player: fix unused var warning with NDEBUG
Thomas Guillem
git at videolan.org
Wed Sep 4 15:10:31 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep 4 09:12:08 2019 +0200| [9c31e4bf7f9f24cbf30026c3456a64e83c1468d1] | committer: Thomas Guillem
player: fix unused var warning with NDEBUG
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c31e4bf7f9f24cbf30026c3456a64e83c1468d1
---
src/player/player.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/player/player.h b/src/player/player.h
index 36caa46299..c75eb9e97a 100644
--- a/src/player/player.h
+++ b/src/player/player.h
@@ -169,6 +169,7 @@ struct vlc_player_t
} destructor;
};
+#ifndef NDEBUG
/*
* Assert that the player mutex is locked.
*
@@ -181,6 +182,9 @@ vlc_player_assert_locked(vlc_player_t *player)
assert(player);
vlc_mutex_assert(&player->lock);
}
+#else
+#define vlc_player_assert_locked(x) ((void) (0))
+#endif
static inline struct vlc_player_input *
vlc_player_get_input_locked(vlc_player_t *player)
More information about the vlc-commits
mailing list