VirtualBox

Changeset 57860 in vbox


Ignore:
Timestamp:
Sep 22, 2015 2:57:16 PM (9 years ago)
Author:
vboxsync
Message:

VMM: warnings.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r57855 r57860  
    553553
    554554 ifeq ($(VBOX_LDR_FMT),elf)
    555   VMMR0_CXXFLAGS += $(filter-out -Wno-unused,$(TEMPLATE_VBoxR0_CXXFLAGS)) -Wunused-variable
     555  VMMR0_CXXFLAGS += $(filter-out -Wno-unused,$(TEMPLATE_VBoxR0_CXXFLAGS)) -Wunused-variable -Wno-unused-parameter
    556556 endif
    557557
     
    733733 VMMAll/PGMAllPool.cpp_CXXFLAGS   = $(VBOX_GCC_Wno-array_bounds)
    734734 VMMAll/PGMAll.cpp_CXXFLAGS       = -Wno-unused-function
    735  VMMAll/IEMAll.cpp_CXXFLAGS       = -Wno-unused-parameter -Wno-unused-function
    736  VMMAll/IEMAllAImplC.cpp_CXXFLAGS = -Wno-unused-parameter
    737  VMMAll/CPUMAllMsrs.cpp_CXXFLAGS  = -Wno-unused-parameter
     735 VMMAll/IEMAll.cpp_CXXFLAGS       = -Wno-unused-function
    738736 VMMR0/GMMR0.cpp_CXXFLAGS         = -Wno-unused-value
    739737endif
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r57562 r57860  
    476476{
    477477    NOREF(pVM);
    478     Assert(pCtxCore == CPUMGetGuestCtxCore(pVCpu));
     478    Assert(pCtxCore == CPUMGetGuestCtxCore(pVCpu)); NOREF(pCtxCore);
    479479    DISCPUMODE enmCpuMode = CPUMGetGuestDisMode(pVCpu);
    480480    /** @todo Deal with too long instruction (=> \#GP), opcode read errors (=>
     
    25992599            Log2(("emInterpret%s: pvFault=%RGv pParam1=%RGv val2=%x\n", emGetMnemonic(pDis), pvFault, pParam1, valpar2));
    26002600            pParam1 = (RTGCPTR)((RTGCUINTPTR)pParam1 + valpar2/8);
    2601             EM_ASSERT_FAULT_RETURN((RTGCPTR)((RTGCUINTPTR)pParam1 & ~3) == pvFault, VERR_EM_INTERPRETER);
     2601            EM_ASSERT_FAULT_RETURN((RTGCPTR)((RTGCUINTPTR)pParam1 & ~3) == pvFault, VERR_EM_INTERPRETER); NOREF(pvFault);
    26022602            rc = emRamRead(pVM, pVCpu, pRegFrame, &valpar1, pParam1, 1);
    26032603            if (RT_FAILURE(rc))
     
    26752675
    26762676    Log2(("emInterpretLockBitTest %s: pvFault=%RGv GCPtrPar1=%RGv imm=%RX64\n", emGetMnemonic(pDis), pvFault, GCPtrPar1, ValPar2));
     2677    NOREF(pvFault);
    26772678
    26782679    /* Try emulate it with a one-shot #PF handler in place. (RC) */
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r57358 r57860  
    452452# endif
    453453    STAM_PROFILE_START(&pStats->CTX_SUFF_Z(ProfWrite), a);
     454#else
     455    NOREF(pVCpu);
    454456#endif
    455457
     
    669671# endif
    670672    STAM_PROFILE_START(&pStats->CTX_SUFF_Z(ProfRead), a);
     673#else
     674    NOREF(pVCpu);
    671675#endif
    672676
     
    17581762    VBOXSTRICTRC rcStrict = IEMExecOne(pVCpu);
    17591763
     1764    NOREF(pCtxCore); NOREF(GCPhysFault);
    17601765    STAM_PROFILE_STOP(&pVM->iom.s.StatRZMMIOHandler, a);
    17611766    PDMCritSectLeave(pDevIns->CTX_SUFF(pCritSectRo));
     
    19321937{
    19331938    LogFlow(("iomMmioPfHandler: GCPhys=%RGp uErr=%#x pvFault=%RGv rip=%RGv\n",
    1934              GCPhysFault, (uint32_t)uErrorCode, pvFault, (RTGCPTR)pCtxCore->rip));
     1939             GCPhysFault, (uint32_t)uErrorCode, pvFault, (RTGCPTR)pCtxCore->rip)); NOREF(pvFault);
    19351940    return iomMmioCommonPfHandler(pVM, pVCpu, (uint32_t)uErrorCode, pCtxCore, GCPhysFault, pvUser);
    19361941}
  • trunk/src/VBox/VMM/VMMAll/MMAllHyper.cpp

    r57358 r57860  
    262262        return VERR_MM_HYPER_NO_MEMORY;
    263263    }
     264#else
     265    NOREF(enmTag);
    264266#endif
    265267    if (uAlignment < PAGE_SIZE)
     
    837839                    ("%p: u32Magic=%#x\n", pv, pHeap->u32Magic),
    838840                    VERR_INVALID_POINTER);
    839     Assert(pHeap == pVM->mm.s.CTX_SUFF(pHyperHeap));
     841    Assert(pHeap == pVM->mm.s.CTX_SUFF(pHyperHeap)); NOREF(pVM);
    840842
    841843    /* Some more verifications using additional info from pHeap. */
     
    12211223    mmHyperHeapCheck(pVM->mm.s.CTX_SUFF(pHyperHeap));
    12221224    mmHyperUnlock(pVM);
     1225#else
     1226    NOREF(pVM);
    12231227#endif
    12241228}
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r57857 r57860  
    74067406DECLINLINE(void) hmR0VmxSetPendingDebugXcpt(PVMCPU pVCpu, PCPUMCTX pMixedCtx)
    74077407{
    7408     Assert(HMVMXCPU_GST_IS_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_RFLAGS));
     7408    Assert(HMVMXCPU_GST_IS_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_RFLAGS)); NOREF(pVCpu);
    74097409    if (pMixedCtx->eflags.Bits.u1TF)    /* We don't have any IA32_DEBUGCTL MSR for guests. Treat as all bits 0. */
    74107410    {
  • trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp

    r57358 r57860  
    302302
    303303    AssertFailed();
    304     NOREF(GCPhys); NOREF(pCachedData);
     304    NOREF(GCPhys); NOREF(pCachedData); NOREF(pDevIns);
    305305
    306306/*    return PATMSetMMIOPatchInfo(pDevIns->Internal.s.pVMR0, GCPhys, pCachedData); */
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