Index: /trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp	(revision 57855)
+++ /trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp	(revision 57856)
@@ -2704,4 +2704,5 @@
 {
     Assert(!(pVCpu->cpum.s.fUseFlags & (CPUM_USED_DEBUG_REGS_GUEST | CPUM_USED_DEBUG_REGS_HYPER | CPUM_USED_DEBUG_REGS_HOST)));
+    NOREF(pVCpu);
 }
 
Index: /trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/VMMR0.cpp	(revision 57855)
+++ /trunk/src/VBox/VMM/VMMR0/VMMR0.cpp	(revision 57856)
@@ -2077,5 +2077,7 @@
         SUPR0Printf("vmmR0LoggerFlush: invalid VCPU context!\n");
 # endif
-#endif
+#else
+    NOREF(pLogger);
+#endif  /* LOG_ENABLED */
 }
 
@@ -2108,4 +2110,5 @@
     return 2;
 #else
+    NOREF(pLogger); NOREF(pcbBuf); NOREF(cchBuf);
     return 0;
 #endif
@@ -2233,5 +2236,7 @@
 {
     for (size_t i = 0; i < cbChars; i++)
-        LogAlways(("%c", pachChars[i]));
+    {
+        LogAlways(("%c", pachChars[i])); NOREF(pachChars);
+    }
 
     NOREF(pv);
Index: /trunk/src/VBox/VMM/include/PGMInline.h
===================================================================
--- /trunk/src/VBox/VMM/include/PGMInline.h	(revision 57855)
+++ /trunk/src/VBox/VMM/include/PGMInline.h	(revision 57856)
@@ -1403,5 +1403,5 @@
 DECLINLINE(void) pgmPoolLockPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage)
 {
-    PGM_LOCK_ASSERT_OWNER(pPool->CTX_SUFF(pVM));
+    PGM_LOCK_ASSERT_OWNER(pPool->CTX_SUFF(pVM)); NOREF(pPool);
     ASMAtomicIncU32(&pPage->cLocked);
 }
@@ -1416,5 +1416,5 @@
 DECLINLINE(void) pgmPoolUnlockPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage)
 {
-    PGM_LOCK_ASSERT_OWNER(pPool->CTX_SUFF(pVM));
+    PGM_LOCK_ASSERT_OWNER(pPool->CTX_SUFF(pVM)); NOREF(pPool);
     Assert(pPage->cLocked);
     ASMAtomicDecU32(&pPage->cLocked);
@@ -1451,5 +1451,5 @@
 #ifdef PGM_WITHOUT_MAPPINGS
     /* There are no mappings in VT-x and AMD-V mode. */
-    Assert(HMIsEnabled(pVM));
+    Assert(HMIsEnabled(pVM)); NOREF(pVM);
     return false;
 #else
@@ -1470,5 +1470,5 @@
 #ifdef PGM_WITHOUT_MAPPINGS
     /* There are no mappings in VT-x and AMD-V mode. */
-    Assert(HMIsEnabled(pVM));
+    Assert(HMIsEnabled(pVM)); NOREF(pVM);
     return false;
 #else
