VirtualBox

Changeset 39034 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Oct 19, 2011 11:43:52 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74454
Message:

VMM,INTNET: Addressing unused variable warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r38879 r39034  
    240240    ASMAtomicCmpXchgU32((uint32_t volatile *)&(pVCpu)->enmState, (enmNewState), (enmOldState))
    241241/** Checks the VMCPU state. */
    242 #define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) \
     242#ifdef VBOX_STRICT
     243# define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) \
    243244    do { \
    244245        VMCPUSTATE enmState = VMCPU_GET_STATE(pVCpu); \
     
    247248                  enmState, enmExpectedState, (pVCpu)->idCpu)); \
    248249    } while (0)
     250#else
     251# define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) do { } while (0)
     252#endif
    249253/** Tests if the state means that the CPU is started. */
    250254#define VMCPUSTATE_IS_STARTED(enmState)     ( (enmState) > VMCPUSTATE_STOPPED )
Note: See TracChangeset for help on using the changeset viewer.

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