- Timestamp:
- Jun 16, 2010 1:43:23 AM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDriver.cpp
r29521 r30217 109 109 110 110 AssertRelease(!(RT_OFFSETOF(PDMDRVINS, achInstanceData) & 15)); 111 PPDMDRVINS pDrvInsAssert; 111 PPDMDRVINS pDrvInsAssert; NOREF(pDrvInsAssert); 112 AssertCompile(sizeof(pDrvInsAssert->Internal.s) <= sizeof(pDrvInsAssert->Internal.padding)); 112 113 AssertRelease(sizeof(pDrvInsAssert->Internal.s) <= sizeof(pDrvInsAssert->Internal.padding)); 113 114 -
trunk/src/VBox/VMM/testcase/tstHelp.h
r28800 r30217 103 103 do \ 104 104 { \ 105 strct *p ; \105 strct *p = NULL; NOREF(p); \ 106 106 if (sizeof(p->member.s) > sizeof(p->member.padding)) \ 107 107 { \ … … 124 124 do \ 125 125 { \ 126 strct *p ; \126 strct *p = NULL; NOREF(p); \ 127 127 if (sizeof(p->s) > sizeof(p->padding)) \ 128 128 { \ … … 139 139 do \ 140 140 { \ 141 strct *p ; \141 strct *p = NULL; NOREF(p); \ 142 142 if (sizeof(p->member) > sizeof(p->pad_member)) \ 143 143 { \ -
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r29329 r30217 75 75 CHECK_PADDING(VM, member, align); \ 76 76 CHECK_MEMBER_ALIGNMENT(VM, member, align); \ 77 VM *p ; \77 VM *p = NULL; NOREF(p); \ 78 78 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 79 79 printf("warning: VM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 89 89 CHECK_PADDING(VMCPU, member, align); \ 90 90 CHECK_MEMBER_ALIGNMENT(VMCPU, member, align); \ 91 VMCPU *p ; \91 VMCPU *p = NULL; NOREF(p); \ 92 92 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 93 93 printf("warning: VMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 111 111 CHECK_PADDING(UVM, member, align); \ 112 112 CHECK_MEMBER_ALIGNMENT(UVM, member, align); \ 113 UVM *p ; \113 UVM *p = NULL; NOREF(p); \ 114 114 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 115 115 printf("warning: UVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 124 124 CHECK_PADDING(UVMCPU, member, align); \ 125 125 CHECK_MEMBER_ALIGNMENT(UVMCPU, member, align); \ 126 UVMCPU *p ; \126 UVMCPU *p = NULL; NOREF(p); \ 127 127 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 128 128 printf("warning: UVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 137 137 CHECK_PADDING(GVM, member, align); \ 138 138 CHECK_MEMBER_ALIGNMENT(GVM, member, align); \ 139 GVM *p ; \139 GVM *p = NULL; NOREF(p); \ 140 140 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 141 141 printf("warning: GVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 150 150 CHECK_PADDING(GVMCPU, member, align); \ 151 151 CHECK_MEMBER_ALIGNMENT(GVMCPU, member, align); \ 152 GVMCPU *p ; \152 GVMCPU *p = NULL; NOREF(p); \ 153 153 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \ 154 154 printf("warning: GVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \ … … 235 235 CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16); 236 236 PRINT_OFFSET(VM, selm.s.Tss); 237 PVM pVM ;237 PVM pVM = NULL; NOREF(pVM); 238 238 if ((RT_OFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss)) 239 239 {
Note:
See TracChangeset
for help on using the changeset viewer.