VirtualBox

Changeset 30217 in vbox for trunk/src


Ignore:
Timestamp:
Jun 16, 2010 1:43:23 AM (15 years ago)
Author:
vboxsync
Message:

VMM: VCC100 warnings.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r29521 r30217  
    109109
    110110    AssertRelease(!(RT_OFFSETOF(PDMDRVINS, achInstanceData) & 15));
    111     PPDMDRVINS pDrvInsAssert;
     111    PPDMDRVINS pDrvInsAssert; NOREF(pDrvInsAssert);
     112    AssertCompile(sizeof(pDrvInsAssert->Internal.s) <= sizeof(pDrvInsAssert->Internal.padding));
    112113    AssertRelease(sizeof(pDrvInsAssert->Internal.s) <= sizeof(pDrvInsAssert->Internal.padding));
    113114
  • trunk/src/VBox/VMM/testcase/tstHelp.h

    r28800 r30217  
    103103    do \
    104104    { \
    105         strct *p; \
     105        strct *p = NULL; NOREF(p); \
    106106        if (sizeof(p->member.s) > sizeof(p->member.padding)) \
    107107        { \
     
    124124    do \
    125125    { \
    126         strct *p; \
     126        strct *p = NULL; NOREF(p); \
    127127        if (sizeof(p->s) > sizeof(p->padding)) \
    128128        { \
     
    139139    do \
    140140    { \
    141         strct *p; \
     141        strct *p = NULL; NOREF(p); \
    142142        if (sizeof(p->member) > sizeof(p->pad_member)) \
    143143        { \
  • trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp

    r29329 r30217  
    7575        CHECK_PADDING(VM, member, align); \
    7676        CHECK_MEMBER_ALIGNMENT(VM, member, align); \
    77         VM *p; \
     77        VM *p = NULL; NOREF(p); \
    7878        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    7979            printf("warning: VM::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    8989        CHECK_PADDING(VMCPU, member, align); \
    9090        CHECK_MEMBER_ALIGNMENT(VMCPU, member, align); \
    91         VMCPU *p; \
     91        VMCPU *p = NULL; NOREF(p); \
    9292        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    9393            printf("warning: VMCPU::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    111111        CHECK_PADDING(UVM, member, align); \
    112112        CHECK_MEMBER_ALIGNMENT(UVM, member, align); \
    113         UVM *p; \
     113        UVM *p = NULL; NOREF(p); \
    114114        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    115115            printf("warning: UVM::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    124124        CHECK_PADDING(UVMCPU, member, align); \
    125125        CHECK_MEMBER_ALIGNMENT(UVMCPU, member, align); \
    126         UVMCPU *p; \
     126        UVMCPU *p = NULL; NOREF(p); \
    127127        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    128128            printf("warning: UVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    137137        CHECK_PADDING(GVM, member, align); \
    138138        CHECK_MEMBER_ALIGNMENT(GVM, member, align); \
    139         GVM *p; \
     139        GVM *p = NULL; NOREF(p); \
    140140        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    141141            printf("warning: GVM::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    150150        CHECK_PADDING(GVMCPU, member, align); \
    151151        CHECK_MEMBER_ALIGNMENT(GVMCPU, member, align); \
    152         GVMCPU *p; \
     152        GVMCPU *p = NULL; NOREF(p); \
    153153        if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
    154154            printf("warning: GVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d  suggest=%-5u\n", \
     
    235235    CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16);
    236236    PRINT_OFFSET(VM, selm.s.Tss);
    237     PVM pVM;
     237    PVM pVM = NULL; NOREF(pVM);
    238238    if ((RT_OFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss))
    239239    {
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