VirtualBox

Changeset 57851 in vbox


Ignore:
Timestamp:
Sep 22, 2015 1:10:34 PM (9 years ago)
Author:
vboxsync
Message:

VMM: unused parameter warning fixes.

Location:
trunk/src/VBox/VMM
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp

    r57513 r57851  
    4444VMM_INT_DECL(int) gimHvHypercall(PVMCPU pVCpu, PCPUMCTX pCtx)
    4545{
     46    NOREF(pCtx);
    4647    PVM pVM = pVCpu->CTX_SUFF(pVM);
    4748    if (!MSR_GIM_HV_HYPERCALL_IS_ENABLED(pVM->gim.s.u.Hv.u64HypercallMsr))
     
    7980
    8081
     82#ifdef IN_RING3
    8183/**
    8284 * Gets the descriptive OS ID variant as identified via the
     
    106108    return "Unknown";
    107109}
     110#endif
    108111
    109112
  • trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp

    r57560 r57851  
    135135VMM_INT_DECL(bool) gimKvmAreHypercallsEnabled(PVMCPU pVCpu)
    136136{
     137    NOREF(pVCpu);
    137138    /* KVM paravirt interface doesn't have hypercall control bits (like Hyper-V does)
    138139       that guests can control, i.e. hypercalls are always enabled. */
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSectRw.cpp

    r57358 r57851  
    156156    AssertPtr(pThis);
    157157    AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
     158
     159#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
     160    NOREF(pSrcPos);
     161    NOREF(fNoVal);
     162#endif
    158163
    159164#if defined(PDMCRITSECTRW_STRICT) && defined(IN_RING3)
     
    564569    AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
    565570
     571#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
     572    NOREF(fNoVal);
     573#endif
     574
    566575    /*
    567576     * Check the direction and take action accordingly.
     
    709718    AssertPtr(pThis);
    710719    AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
     720
     721#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
     722    NOREF(pSrcPos);
     723    NOREF(fNoVal);
     724#endif
    711725
    712726#if defined(PDMCRITSECTRW_STRICT) && defined(IN_RING3)
     
    11001114    AssertReturn(pThis->s.Core.u32Magic == RTCRITSECTRW_MAGIC, VERR_SEM_DESTROYED);
    11011115
     1116#if !defined(PDMCRITSECTRW_STRICT) || !defined(IN_RING3)
     1117    NOREF(fNoVal);
     1118#endif
     1119
    11021120    RTNATIVETHREAD hNativeSelf = pdmCritSectRwGetNativeSelf(pThis);
    11031121    RTNATIVETHREAD hNativeWriter;
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r57358 r57851  
    8787DECLINLINE(uint32_t) pgmHandlerPhysicalTypeRetain(PVM pVM, PPGMPHYSHANDLERTYPEINT pType)
    8888{
     89    NOREF(pVM);
    8990    AssertMsgReturn(pType->u32Magic == PGMPHYSHANDLERTYPEINT_MAGIC, ("%#x\n", pType->u32Magic), UINT32_MAX);
    9091    uint32_t cRefs = ASMAtomicIncU32(&pType->cRefs);
     
    14001401DECLINLINE(uint32_t) pgmHandlerVirtualTypeRetain(PVM pVM, PPGMVIRTHANDLERTYPEINT pType)
    14011402{
     1403    NOREF(pVM);
    14021404    AssertMsgReturn(pType->u32Magic == PGMVIRTHANDLERTYPEINT_MAGIC, ("%#x\n", pType->u32Magic), UINT32_MAX);
    14031405    uint32_t cRefs = ASMAtomicIncU32(&pType->cRefs);
  • trunk/src/VBox/VMM/VMMAll/SELMAll.cpp

    r57446 r57851  
    814814                                                   RTGCPTR Addr, PRTGCPTR ppvFlat)
    815815{
     816    NOREF(SelCPL); NOREF(SelCS);
     817
    816818    /*
    817819     * Check if present.
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r57358 r57851  
    410410    AssertReturn(pcbWritten, VERR_INVALID_POINTER);
    411411
     412    NOREF(pVM);
     413
    412414    if (ASMIsAmdCpu())
    413415    {
  • trunk/src/VBox/VMM/VMMR0/GIMR0Hv.cpp

    r57358 r57851  
    137137    Assert(pRefTsc->u32TscSequence != 0);
    138138    Assert(pRefTsc->u32TscSequence != UINT32_C(0xffffffff));
     139#else
     140    NOREF(u64Offset);
    139141#endif
    140142    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r57565 r57851  
    16531653{
    16541654    int rc = VINF_SUCCESS;
     1655    NOREF(pCtx);
    16551656    if (HMCPU_CF_IS_PENDING(pVCpu, HM_CHANGED_GUEST_XCPT_INTERCEPTS))
    16561657    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette