diff --git a/src/box/tuple.h b/src/box/tuple.h
index 127ac7171963ea2d3c7391b325b7eb421900baa7..d9f25b67a260ca34b9e3360986fcdfecb8aefec2 100644
--- a/src/box/tuple.h
+++ b/src/box/tuple.h
@@ -873,8 +873,11 @@ static inline void
 mp_tuple_assert(const char *tuple, const char *tuple_end)
 {
 	assert(mp_typeof(*tuple) == MP_ARRAY);
+#ifndef NDEBUG
 	mp_next(&tuple);
+#endif
 	assert(tuple == tuple_end);
+	(void) tuple;
 	(void) tuple_end;
 }