VirtualBox

Changeset 39034 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 19, 2011 11:43:52 AM (13 years ago)
Author:
vboxsync
Message:

VMM,INTNET: Addressing unused variable warnings.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/intnet.h

    r37979 r39034  
    7878 * Asserts the sanity of the specified INTNETRINGBUF structure.
    7979 */
    80 #define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) \
     80#ifdef VBOX_STRICT
     81# define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) \
    8182    do \
    8283    { \
     
    104105        } \
    105106    } while (0)
     107#else
     108# define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) do { } while (0)
     109#endif
    106110
    107111
     
    248252 * Asserts the sanity of the specified INTNETHDR.
    249253 */
     254#ifdef VBOX_STRICT
    250255#define INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf) \
    251256    do \
     
    268273        } \
    269274    } while (0)
     275#else
     276# define INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf) do { } while (0)
     277#endif
    270278
    271279
  • 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.

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