VirtualBox

Changeset 63465 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 15, 2016 10:00:20 AM (8 years ago)
Author:
vboxsync
Message:

VMM: warnings (clang)

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r62637 r63465  
    371371};
    372372
     373#if 0 /** @todo */
    373374/** Saved state field descriptors for X86XSAVEOPMASK. */
    374375static const SSMFIELD g_aCpumOpmaskFields[] =
     
    384385    SSMFIELD_ENTRY_TERM()
    385386};
     387#endif
    386388
    387389/** Saved state field descriptors for X86XSAVEZMMHI256. */
  • trunk/src/VBox/VMM/VMMR3/CPUMDbg.cpp

    r62637 r63465  
    10861086};
    10871087
     1088#if 0 /** @todo */
    10881089/** Sub-fields for the SF_MASK MSR. */
    10891090static DBGFREGSUBFIELD const g_aCpumRegFields_sf_mask[] =
     
    10921093    DBGFREGSUBFIELD_TERMINATOR()
    10931094};
     1095#endif
    10941096
    10951097
  • trunk/src/VBox/VMM/VMMR3/CPUMR3Db.cpp

    r62478 r63465  
    183183/** @} */
    184184
     185#ifndef CPUM_DB_STANDALONE
    185186
    186187#include "cpus/Intel_Core_i7_6700K.h"
     
    295296
    296297
    297 #ifndef CPUM_DB_STANDALONE
    298298
    299299/**
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r62659 r63465  
    9292#endif
    9393static VBOXSTRICTRC emR3Debug(PVM pVM, PVMCPU pVCpu, VBOXSTRICTRC rc);
     94#if defined(VBOX_WITH_REM) || defined(DEBUG)
    9495static int emR3RemStep(PVM pVM, PVMCPU pVCpu);
     96#endif
    9597static int emR3RemExecute(PVM pVM, PVMCPU pVCpu, bool *pfFFDone);
    9698int emR3HighPriorityPostForcedActions(PVM pVM, PVMCPU pVCpu, int rc);
     
    519521#ifdef VBOX_WITH_REM
    520522    PDMR3CritSectDelete(&pVM->em.s.CritSectREM);
     523#else
     524    RT_NOREF(pVM);
    521525#endif
    522526    return VINF_SUCCESS;
     
    990994
    991995
     996#if defined(VBOX_WITH_REM) || defined(DEBUG)
    992997/**
    993998 * Steps recompiled code.
     
    10031008    Log3(("emR3RemStep: cs:eip=%04x:%08x\n", CPUMGetGuestCS(pVCpu),  CPUMGetGuestEIP(pVCpu)));
    10041009
    1005 #ifdef VBOX_WITH_REM
     1010# ifdef VBOX_WITH_REM
    10061011    EMRemLock(pVM);
    10071012
     
    10171022    EMRemUnlock(pVM);
    10181023
    1019 #else
     1024# else
    10201025    int rc = VBOXSTRICTRC_TODO(IEMExecOne(pVCpu)); NOREF(pVM);
    1021 #endif
     1026# endif
    10221027
    10231028    Log3(("emR3RemStep: returns %Rrc cs:eip=%04x:%08x\n", rc, CPUMGetGuestCS(pVCpu),  CPUMGetGuestEIP(pVCpu)));
    10241029    return rc;
    10251030}
    1026 
    1027 
     1031#endif /* VBOX_WITH_REM || DEBUG */
     1032
     1033
     1034#ifdef VBOX_WITH_REM
    10281035/**
    10291036 * emR3RemExecute helper that syncs the state back from REM and leave the REM
     
    10361043DECLINLINE(bool) emR3RemExecuteSyncBack(PVM pVM, PVMCPU pVCpu)
    10371044{
    1038 #ifdef VBOX_WITH_REM
    10391045    STAM_PROFILE_START(&pVCpu->em.s.StatREMSync, a);
    10401046    REMR3StateBack(pVM, pVCpu);
     
    10421048
    10431049    EMRemUnlock(pVM);
    1044 #endif
    10451050    return false;
    10461051}
     1052#endif
    10471053
    10481054
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r63128 r63465  
    28712871    else
    28722872    {
     2873#ifdef VBOX_WITH_REM
    28732874        RTGCPHYS cb = pCur->RamRange.cb;
     2875#endif
    28742876
    28752877        /* Clear the tracking data of pages we're going to reactivate. */
  • trunk/src/VBox/VMM/VMMR3/SELM.cpp

    r63429 r63465  
    107107*   Global Variables                                                                                                             *
    108108*********************************************************************************************************************************/
    109 #ifdef LOG_ENABLED
     109#if defined(VBOX_WITH_RAW_MODE) && defined(LOG_ENABLED)
    110110/** Segment register names. */
    111111static char const g_aszSRegNms[X86_SREG_COUNT][4] = { "ES", "CS", "SS", "DS", "FS", "GS" };
  • trunk/src/VBox/VMM/VMMR3/SSM.cpp

    r62869 r63465  
    869869*   Global Variables                                                                                                             *
    870870*********************************************************************************************************************************/
     871#ifndef SSM_STANDALONE
    871872/** Zeros used by the struct putter.
    872873 * This must be at least 8 bytes or the code breaks. */
    873874static uint8_t const    g_abZero[_1K] = {0};
     875#endif
    874876
    875877
  • trunk/src/VBox/VMM/VMMR3/VMEmt.cpp

    r62650 r63465  
    962962             && pUVCpu->pVCpu->enmState == VMCPUSTATE_STARTED_EXEC_REM)
    963963        REMR3NotifyFF(pUVCpu->pVM);
     964#else
     965    RT_NOREF(fFlags);
    964966#endif
    965967}
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