VirtualBox

Changeset 63480 in vbox for trunk/src


Ignore:
Timestamp:
Aug 15, 2016 2:17:54 PM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings (clang)

Location:
trunk/src/VBox/Devices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m

    r62463 r63480  
    280280    self = [super initWithFrame:frame pixelFormat:pFmt];
    281281#else
     282    RT_NOREF(pFmt);
    282283    m_cSetViewAttempts = 0;
    283284    m_pCtx = NULL;
     
    477478- (void)vboxBoundsDidChange:(NSNotification *)pNotification
    478479{
     480    RT_NOREF(pNotification);
    479481    LogFlow(("OvlView(%p) vboxBoundsDidChange:\n", (void *)self));
    480482    self->m_fUpdateCtx = true;
     
    488490- (void)vboxFrameDidChange:(NSNotification *)pNotification
    489491{
     492    RT_NOREF(pNotification);
    490493    LogFlow(("OvlView(%p) vboxFrameDidChange:\n", (void *)self));
    491494    self->m_fUpdateCtx = true;
     
    500503- (void)vboxFrameDidChangeGlobal:(NSNotification *)pNotification
    501504{
     505    RT_NOREF(pNotification);
    502506    LogFlow(("OvlView(%p) vboxFrameDidChangeGlobal:\n", (void *)self));
    503507    self->m_fUpdateCtx = true;
     
    664668- (void)drawRect:(NSRect)rect
    665669{
     670    RT_NOREF(rect);
    666671//    if (m_fClear)
    667672//    {
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r63478 r63480  
    340340}
    341341
     342#ifdef IN_RING3
    342343/**
    343344 * Reset dirty flags in a give range.
     
    354355    ASMBitClearRange(&pThis->au32DirtyBitmap[0], offVRAMStart >> PAGE_SHIFT, offVRAMEnd >> PAGE_SHIFT);
    355356}
     357#endif /* IN_RING3 */
    356358
    357359#ifdef _MSC_VER
     
    447449#endif
    448450
     451#ifdef IN_RING3
     452
    449453static const uint32_t dmask16[16] = {
    450454    PAT(0x00000000),
     
    473477};
    474478
    475 #if defined(IN_RING3)
    476479static uint32_t expand4[256];
    477480static uint16_t expand2[256];
    478481static uint8_t expand4to8[16];
     482
    479483#endif /* IN_RING3 */
    480484
     
    15181522}
    15191523
    1520 #if defined(IN_RING3)
     1524#ifdef IN_RING3
     1525
    15211526typedef void vga_draw_glyph8_func(uint8_t *d, int linesize,
    15221527                                  const uint8_t *font_ptr, int h,
     
    21522157}
    21532158
    2154 #ifdef VBOX_WITH_VMSVGA
     2159# ifdef VBOX_WITH_VMSVGA
     2160
    21552161int vgaR3UpdateDisplay(VGAState *s, unsigned xStart, unsigned yStart, unsigned cx, unsigned cy)
    21562162{
     
    23322338    return VINF_SUCCESS;
    23332339}
    2334 #endif /* VBOX_WITH_VMSVGA */
     2340
     2341# endif /* VBOX_WITH_VMSVGA */
    23352342
    23362343/*
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r63218 r63480  
    496496}
    497497
     498
     499#ifdef IN_RING3
    498500/**
    499501 * Sets the I/O controller into fault state and sets the fault code.
     
    514516        LogFunc(("We are already in FAULT state\n"));
    515517}
     518#endif /* IN_RING3 */
     519
    516520
    517521/**
     
    533537}
    534538
     539#ifdef IN_RING3
     540
    535541/**
    536542 * Returns the number of free entries in the reply post queue.
     
    551557}
    552558
    553 #ifdef IN_RING3
    554559
    555560/**
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r62956 r63480  
    264264/** The IO Master Port.
    265265 * Not worth cleaning up.  */
    266 static mach_port_t  g_MasterPort = NULL;
     266static mach_port_t  g_MasterPort = MACH_PORT_NULL;
    267267
    268268
     
    273273 *
    274274 * @param   pvUser1     NULL, ignored.
    275  * @param   pvUser2     NULL, ignored.
    276275 */
    277276static DECLCALLBACK(int32_t) usbProxyDarwinInitOnce(void *pvUser1)
    278277{
     278    RT_NOREF(pvUser1);
     279
    279280    int rc;
    280281    kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort);
     
    818819     * Create a interface enumerator for all the interface (current config).
    819820     */
    820     io_iterator_t Interfaces = NULL;
     821    io_iterator_t Interfaces = IO_OBJECT_NULL;
    821822    IOUSBFindInterfaceRequest Req;
    822823    Req.bInterfaceClass    = kIOUSBFindInterfaceDontCare;
     
    844845                                                    kIOCFPlugInInterfaceID, &ppPlugInInterface, &Score);
    845846            IOObjectRelease(Interface);
    846             Interface = NULL;
     847            Interface = IO_OBJECT_NULL;
    847848            if (krc == KERN_SUCCESS)
    848849            {
     
    10801081static DECLCALLBACK(void) usbProxyDarwinPerformWakeup(void *pInfo)
    10811082{
     1083    RT_NOREF(pInfo);
    10821084    return;
    10831085}
     
    10991101static DECLCALLBACK(int) usbProxyDarwinOpen(PUSBPROXYDEV pProxyDev, const char *pszAddress, void *pvBackend)
    11001102{
    1101     int vrc;
     1103    RT_NOREF(pvBackend);
    11021104    LogFlow(("usbProxyDarwinOpen: pProxyDev=%p pszAddress=%s\n", pProxyDev, pszAddress));
    11031105
     
    11051107     * Init globals once.
    11061108     */
    1107     vrc = RTOnce(&g_usbProxyDarwinOnce, usbProxyDarwinInitOnce, NULL);
     1109    int vrc = RTOnce(&g_usbProxyDarwinOnce, usbProxyDarwinInitOnce, NULL);
    11081110    AssertRCReturn(vrc, vrc);
    11091111
     
    11221124     */
    11231125    CFMutableDictionaryRef RefMatchingDict = IOServiceMatching(kIOUSBDeviceClassName);
    1124     AssertReturn(RefMatchingDict, NULL);
     1126    AssertReturn(RefMatchingDict != IO_OBJECT_NULL, VERR_OPEN_FAILED);
    11251127
    11261128    uint64_t u64SessionId = 0;
     
    11621164    } while (*psz);
    11631165
    1164     io_iterator_t USBDevices = NULL;
     1166    io_iterator_t USBDevices = IO_OBJECT_NULL;
    11651167    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));
    11671169    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    11681170
     
    11941196    }
    11951197    IOObjectRelease(USBDevices);
    1196     USBDevices = NULL;
     1198    USBDevices = IO_OBJECT_NULL;
    11971199    if (!USBDevice)
    11981200    {
     
    14041406    pDevOsX->ppDevI = NULL;
    14051407    kern_return_t krc = IOObjectRelease(pDevOsX->USBDevice); Assert(krc == KERN_SUCCESS); NOREF(krc);
    1406     pDevOsX->USBDevice = NULL;
     1408    pDevOsX->USBDevice = IO_OBJECT_NULL;
    14071409    pDevOsX->pProxyDev = NULL;
    14081410
     
    14321434static DECLCALLBACK(int) usbProxyDarwinReset(PUSBPROXYDEV pProxyDev, bool fResetOnLinux)
    14331435{
     1436    RT_NOREF(fResetOnLinux);
    14341437    PUSBPROXYDEVOSX pDevOsX = USBPROXYDEV_2_DATA(pProxyDev, PUSBPROXYDEVOSX);
    14351438    LogFlow(("usbProxyDarwinReset: pProxyDev=%s\n", pProxyDev->pUsbIns->pszName));
     
    14971500static DECLCALLBACK(int) usbProxyDarwinClaimInterface(PUSBPROXYDEV pProxyDev, int iIf)
    14981501{
     1502    RT_NOREF(pProxyDev, iIf);
    14991503    return VINF_SUCCESS;
    15001504}
     
    15111515static DECLCALLBACK(int) usbProxyDarwinReleaseInterface(PUSBPROXYDEV pProxyDev, int iIf)
    15121516{
     1517    RT_NOREF(pProxyDev, iIf);
    15131518    return VINF_SUCCESS;
    15141519}
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