Index: /trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp	(revision 57851)
@@ -44,4 +44,5 @@
 VMM_INT_DECL(int) gimHvHypercall(PVMCPU pVCpu, PCPUMCTX pCtx)
 {
+    NOREF(pCtx);
     PVM pVM = pVCpu->CTX_SUFF(pVM);
     if (!MSR_GIM_HV_HYPERCALL_IS_ENABLED(pVM->gim.s.u.Hv.u64HypercallMsr))
@@ -79,4 +80,5 @@
 
 
+#ifdef IN_RING3
 /**
  * Gets the descriptive OS ID variant as identified via the
@@ -106,4 +108,5 @@
     return "Unknown";
 }
+#endif
 
 
Index: /trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp	(revision 57851)
@@ -135,4 +135,5 @@
 VMM_INT_DECL(bool) gimKvmAreHypercallsEnabled(PVMCPU pVCpu)
 {
+    NOREF(pVCpu);
     /* KVM paravirt interface doesn't have hypercall control bits (like Hyper-V does)
        that guests can control, i.e. hypercalls are always enabled. */
Index: /trunk/src/VBox/VMM/VMMAll/PDMAllCritSectRw.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/PDMAllCritSectRw.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/PDMAllCritSectRw.cpp	(revision 57851)
@@ -156,4 +156,9 @@
     AssertPtr(pThis);
     AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
+
+#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
+    NOREF(pSrcPos);
+    NOREF(fNoVal);
+#endif
 
 #if defined(PDMCRITSECTRW_STRICT) && defined(IN_RING3)
@@ -564,4 +569,8 @@
     AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
 
+#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
+    NOREF(fNoVal);
+#endif
+
     /*
      * Check the direction and take action accordingly.
@@ -709,4 +718,9 @@
     AssertPtr(pThis);
     AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
+
+#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
+    NOREF(pSrcPos);
+    NOREF(fNoVal);
+#endif
 
 #if defined(PDMCRITSECTRW_STRICT) && defined(IN_RING3)
@@ -1100,4 +1114,8 @@
     AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
 
+#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
+    NOREF(fNoVal);
+#endif
+
     RTNATIVETHREAD hNativeSelf = pdmCritSectRwGetNativeSelf(pThis);
     RTNATIVETHREAD hNativeWriter;
Index: /trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp	(revision 57851)
@@ -87,4 +87,5 @@
 DECLINLINE(uint32_t) pgmHandlerPhysicalTypeRetain(PVM pVM, PPGMPHYSHANDLERTYPEINT pType)
 {
+    NOREF(pVM);
     AssertMsgReturn(pType->u32Magic == PGMPHYSHANDLERTYPEINT_MAGIC, ("%#x\n", pType->u32Magic), UINT32_MAX);
     uint32_t cRefs = ASMAtomicIncU32(&pType->cRefs);
@@ -1400,4 +1401,5 @@
 DECLINLINE(uint32_t) pgmHandlerVirtualTypeRetain(PVM pVM, PPGMVIRTHANDLERTYPEINT pType)
 {
+    NOREF(pVM);
     AssertMsgReturn(pType->u32Magic == PGMVIRTHANDLERTYPEINT_MAGIC, ("%#x\n", pType->u32Magic), UINT32_MAX);
     uint32_t cRefs = ASMAtomicIncU32(&pType->cRefs);
Index: /trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/SELMAll.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/SELMAll.cpp	(revision 57851)
@@ -814,4 +814,6 @@
                                                    RTGCPTR Addr, PRTGCPTR ppvFlat)
 {
+    NOREF(SelCPL); NOREF(SelCS);
+
     /*
      * Check if present.
Index: /trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/VMMAll.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMAll/VMMAll.cpp	(revision 57851)
@@ -410,4 +410,6 @@
     AssertReturn(pcbWritten, VERR_INVALID_POINTER);
 
+    NOREF(pVM);
+
     if (ASMIsAmdCpu())
     {
Index: /trunk/src/VBox/VMM/VMMR0/GIMR0Hv.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/GIMR0Hv.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMR0/GIMR0Hv.cpp	(revision 57851)
@@ -137,4 +137,6 @@
     Assert(pRefTsc->u32TscSequence != 0);
     Assert(pRefTsc->u32TscSequence != UINT32_C(0xffffffff));
+#else
+    NOREF(u64Offset);
 #endif
     return VINF_SUCCESS;
Index: /trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp	(revision 57850)
+++ /trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp	(revision 57851)
@@ -1653,4 +1653,5 @@
 {
     int rc = VINF_SUCCESS;
+    NOREF(pCtx);
     if (HMCPU_CF_IS_PENDING(pVCpu, HM_CHANGED_GUEST_XCPT_INTERCEPTS))
     {
