- Timestamp:
- Aug 15, 2016 2:17:54 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m
r62463 r63480 280 280 self = [super initWithFrame:frame pixelFormat:pFmt]; 281 281 #else 282 RT_NOREF(pFmt); 282 283 m_cSetViewAttempts = 0; 283 284 m_pCtx = NULL; … … 477 478 - (void)vboxBoundsDidChange:(NSNotification *)pNotification 478 479 { 480 RT_NOREF(pNotification); 479 481 LogFlow(("OvlView(%p) vboxBoundsDidChange:\n", (void *)self)); 480 482 self->m_fUpdateCtx = true; … … 488 490 - (void)vboxFrameDidChange:(NSNotification *)pNotification 489 491 { 492 RT_NOREF(pNotification); 490 493 LogFlow(("OvlView(%p) vboxFrameDidChange:\n", (void *)self)); 491 494 self->m_fUpdateCtx = true; … … 500 503 - (void)vboxFrameDidChangeGlobal:(NSNotification *)pNotification 501 504 { 505 RT_NOREF(pNotification); 502 506 LogFlow(("OvlView(%p) vboxFrameDidChangeGlobal:\n", (void *)self)); 503 507 self->m_fUpdateCtx = true; … … 664 668 - (void)drawRect:(NSRect)rect 665 669 { 670 RT_NOREF(rect); 666 671 // if (m_fClear) 667 672 // { -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r63478 r63480 340 340 } 341 341 342 #ifdef IN_RING3 342 343 /** 343 344 * Reset dirty flags in a give range. … … 354 355 ASMBitClearRange(&pThis->au32DirtyBitmap[0], offVRAMStart >> PAGE_SHIFT, offVRAMEnd >> PAGE_SHIFT); 355 356 } 357 #endif /* IN_RING3 */ 356 358 357 359 #ifdef _MSC_VER … … 447 449 #endif 448 450 451 #ifdef IN_RING3 452 449 453 static const uint32_t dmask16[16] = { 450 454 PAT(0x00000000), … … 473 477 }; 474 478 475 #if defined(IN_RING3)476 479 static uint32_t expand4[256]; 477 480 static uint16_t expand2[256]; 478 481 static uint8_t expand4to8[16]; 482 479 483 #endif /* IN_RING3 */ 480 484 … … 1518 1522 } 1519 1523 1520 #if defined(IN_RING3) 1524 #ifdef IN_RING3 1525 1521 1526 typedef void vga_draw_glyph8_func(uint8_t *d, int linesize, 1522 1527 const uint8_t *font_ptr, int h, … … 2152 2157 } 2153 2158 2154 #ifdef VBOX_WITH_VMSVGA 2159 # ifdef VBOX_WITH_VMSVGA 2160 2155 2161 int vgaR3UpdateDisplay(VGAState *s, unsigned xStart, unsigned yStart, unsigned cx, unsigned cy) 2156 2162 { … … 2332 2338 return VINF_SUCCESS; 2333 2339 } 2334 #endif /* VBOX_WITH_VMSVGA */ 2340 2341 # endif /* VBOX_WITH_VMSVGA */ 2335 2342 2336 2343 /* -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r63218 r63480 496 496 } 497 497 498 499 #ifdef IN_RING3 498 500 /** 499 501 * Sets the I/O controller into fault state and sets the fault code. … … 514 516 LogFunc(("We are already in FAULT state\n")); 515 517 } 518 #endif /* IN_RING3 */ 519 516 520 517 521 /** … … 533 537 } 534 538 539 #ifdef IN_RING3 540 535 541 /** 536 542 * Returns the number of free entries in the reply post queue. … … 551 557 } 552 558 553 #ifdef IN_RING3554 559 555 560 /** -
trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp
r62956 r63480 264 264 /** The IO Master Port. 265 265 * Not worth cleaning up. */ 266 static mach_port_t g_MasterPort = NULL;266 static mach_port_t g_MasterPort = MACH_PORT_NULL; 267 267 268 268 … … 273 273 * 274 274 * @param pvUser1 NULL, ignored. 275 * @param pvUser2 NULL, ignored.276 275 */ 277 276 static DECLCALLBACK(int32_t) usbProxyDarwinInitOnce(void *pvUser1) 278 277 { 278 RT_NOREF(pvUser1); 279 279 280 int rc; 280 281 kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort); … … 818 819 * Create a interface enumerator for all the interface (current config). 819 820 */ 820 io_iterator_t Interfaces = NULL;821 io_iterator_t Interfaces = IO_OBJECT_NULL; 821 822 IOUSBFindInterfaceRequest Req; 822 823 Req.bInterfaceClass = kIOUSBFindInterfaceDontCare; … … 844 845 kIOCFPlugInInterfaceID, &ppPlugInInterface, &Score); 845 846 IOObjectRelease(Interface); 846 Interface = NULL;847 Interface = IO_OBJECT_NULL; 847 848 if (krc == KERN_SUCCESS) 848 849 { … … 1080 1081 static DECLCALLBACK(void) usbProxyDarwinPerformWakeup(void *pInfo) 1081 1082 { 1083 RT_NOREF(pInfo); 1082 1084 return; 1083 1085 } … … 1099 1101 static DECLCALLBACK(int) usbProxyDarwinOpen(PUSBPROXYDEV pProxyDev, const char *pszAddress, void *pvBackend) 1100 1102 { 1101 int vrc;1103 RT_NOREF(pvBackend); 1102 1104 LogFlow(("usbProxyDarwinOpen: pProxyDev=%p pszAddress=%s\n", pProxyDev, pszAddress)); 1103 1105 … … 1105 1107 * Init globals once. 1106 1108 */ 1107 vrc = RTOnce(&g_usbProxyDarwinOnce, usbProxyDarwinInitOnce, NULL);1109 int vrc = RTOnce(&g_usbProxyDarwinOnce, usbProxyDarwinInitOnce, NULL); 1108 1110 AssertRCReturn(vrc, vrc); 1109 1111 … … 1122 1124 */ 1123 1125 CFMutableDictionaryRef RefMatchingDict = IOServiceMatching(kIOUSBDeviceClassName); 1124 AssertReturn(RefMatchingDict , NULL);1126 AssertReturn(RefMatchingDict != IO_OBJECT_NULL, VERR_OPEN_FAILED); 1125 1127 1126 1128 uint64_t u64SessionId = 0; … … 1162 1164 } while (*psz); 1163 1165 1164 io_iterator_t USBDevices = NULL;1166 io_iterator_t USBDevices = IO_OBJECT_NULL; 1165 1167 IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &USBDevices); 1166 AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%#x\n", irc), NULL);1168 AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%#x\n", irc), RTErrConvertFromDarwinIO(irc)); 1167 1169 RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */ 1168 1170 … … 1194 1196 } 1195 1197 IOObjectRelease(USBDevices); 1196 USBDevices = NULL;1198 USBDevices = IO_OBJECT_NULL; 1197 1199 if (!USBDevice) 1198 1200 { … … 1404 1406 pDevOsX->ppDevI = NULL; 1405 1407 kern_return_t krc = IOObjectRelease(pDevOsX->USBDevice); Assert(krc == KERN_SUCCESS); NOREF(krc); 1406 pDevOsX->USBDevice = NULL;1408 pDevOsX->USBDevice = IO_OBJECT_NULL; 1407 1409 pDevOsX->pProxyDev = NULL; 1408 1410 … … 1432 1434 static DECLCALLBACK(int) usbProxyDarwinReset(PUSBPROXYDEV pProxyDev, bool fResetOnLinux) 1433 1435 { 1436 RT_NOREF(fResetOnLinux); 1434 1437 PUSBPROXYDEVOSX pDevOsX = USBPROXYDEV_2_DATA(pProxyDev, PUSBPROXYDEVOSX); 1435 1438 LogFlow(("usbProxyDarwinReset: pProxyDev=%s\n", pProxyDev->pUsbIns->pszName)); … … 1497 1500 static DECLCALLBACK(int) usbProxyDarwinClaimInterface(PUSBPROXYDEV pProxyDev, int iIf) 1498 1501 { 1502 RT_NOREF(pProxyDev, iIf); 1499 1503 return VINF_SUCCESS; 1500 1504 } … … 1511 1515 static DECLCALLBACK(int) usbProxyDarwinReleaseInterface(PUSBPROXYDEV pProxyDev, int iIf) 1512 1516 { 1517 RT_NOREF(pProxyDev, iIf); 1513 1518 return VINF_SUCCESS; 1514 1519 }
Note:
See TracChangeset
for help on using the changeset viewer.