Index: /trunk/src/VBox/Main/src-client/EbmlWriter.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/EbmlWriter.cpp	(revision 65260)
+++ /trunk/src/VBox/Main/src-client/EbmlWriter.cpp	(revision 65261)
@@ -125,4 +125,5 @@
     inline Ebml &subEnd(EbmlClassId classId)
     {
+#ifdef VBOX_STRICT
         /* Class ID on the top of the stack should match the class ID passed
          * to the function. Otherwise it may mean that we have a bug in the code.
@@ -131,4 +132,7 @@
         AssertMsg(m_Elements.top().classId == classId,
                   ("Ending sub element 0x%x is in wrong order (next to close is 0x%x)\n", classId, m_Elements.top().classId));
+#else
+        RT_NOREF(classId);
+#endif
 
         uint64_t uPos = RTFileTell(m_File);
@@ -565,4 +569,6 @@
     int WriteBlock(WebMWriter::BlockType blockType, const void *pvData, size_t cbData)
     {
+        RT_NOREF(cbData); /* Only needed for assertions for now. */
+
         int rc;
 
