VirtualBox

Changeset 62655 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2016 10:22:47 PM (8 years ago)
Author:
vboxsync
Message:

VMMR3: warnings

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp

    r62478 r62655  
    726726
    727727    bool fInserted = RTAvlrFileOffsetInsert(pEndpoint->AioMgr.pTreeRangesLocked, &pRangeLock->Core);
    728     AssertMsg(fInserted, ("Range lock was not inserted!\n"));
     728    AssertMsg(fInserted, ("Range lock was not inserted!\n")); NOREF(fInserted);
    729729
    730730    /* Let the task point to its lock. */
     
    14301430                {
    14311431                    bool fReqsPending = pdmacFileAioMgrNormalRemoveEndpoint(pEndpoint);
    1432                     Assert(!fReqsPending);
     1432                    Assert(!fReqsPending); NOREF(fReqsPending);
    14331433
    14341434                    rc = pdmacFileAioMgrAddEndpoint(pEndpoint->AioMgr.pAioMgrDst, pEndpoint);
     
    15871587                    /* If the endpoint is about to be migrated do it now. */
    15881588                    bool fReqsPending = pdmacFileAioMgrNormalRemoveEndpoint(pEndpoint);
    1589                     Assert(!fReqsPending);
     1589                    Assert(!fReqsPending); NOREF(fReqsPending);
    15901590
    15911591                    rc = pdmacFileAioMgrAddEndpoint(pEndpoint->AioMgr.pAioMgrDst, pEndpoint);
  • trunk/src/VBox/VMM/VMMR3/PDMNetShaper.cpp

    r62478 r62655  
    305305    AssertPtrReturn(pFilter, VERR_INVALID_POINTER);
    306306    AssertReturn(pFilter->pBwGroupR3 == NULL, VERR_ALREADY_EXISTS);
     307    RT_NOREF_PV(pDrvIns);
    307308
    308309    PPDMNETSHAPER pShaper = pUVM->pdm.s.pNetShaper;
     
    344345VMMR3_INT_DECL(int) PDMR3NsDetach(PUVM pUVM, PPDMDRVINS pDrvIns, PPDMNSFILTER pFilter)
    345346{
     347    RT_NOREF_PV(pDrvIns);
    346348    VM_ASSERT_EMT(pUVM->pVM);
    347349    AssertPtrReturn(pFilter, VERR_INVALID_POINTER);
     350
    348351    /* Now, return quietly if the filter isn't attached since driver/device
    349352       destructors are called on constructor failure. */
     
    412415static DECLCALLBACK(int) pdmR3NsTxThread(PVM pVM, PPDMTHREAD pThread)
    413416{
     417    RT_NOREF_PV(pVM);
     418
    414419    PPDMNETSHAPER pShaper = (PPDMNETSHAPER)pThread->pvUser;
    415420    LogFlow(("pdmR3NsTxThread: pShaper=%p\n", pShaper));
     
    437442static DECLCALLBACK(int) pdmR3NsTxWakeUp(PVM pVM, PPDMTHREAD pThread)
    438443{
    439     PPDMNETSHAPER pShaper = (PPDMNETSHAPER)pThread->pvUser;
    440     LogFlow(("pdmR3NsTxWakeUp: pShaper=%p\n", pShaper));
     444    RT_NOREF2(pVM, pThread);
     445    LogFlow(("pdmR3NsTxWakeUp: pShaper=%p\n", pThread->pvUser));
    441446    /* Nothing to do */
    442447    return VINF_SUCCESS;
     
    504509                for (PCFGMNODE pCur = CFGMR3GetFirstChild(pCfgBwGrp); pCur; pCur = CFGMR3GetNextChild(pCur))
    505510                {
    506                     uint64_t cbMax;
    507511                    size_t cbName = CFGMR3GetNameLen(pCur) + 1;
    508512                    char *pszBwGrpId = (char *)RTMemAllocZ(cbName);
    509 
    510                     if (!pszBwGrpId)
     513                    if (pszBwGrpId)
    511514                    {
     515                        rc = CFGMR3GetName(pCur, pszBwGrpId, cbName);
     516                        if (RT_SUCCESS(rc))
     517                        {
     518                            uint64_t cbMax;
     519                            rc = CFGMR3QueryU64(pCur, "Max", &cbMax);
     520                            if (RT_SUCCESS(rc))
     521                                rc = pdmNsBwGroupCreate(pShaper, pszBwGrpId, cbMax);
     522                        }
     523                        RTMemFree(pszBwGrpId);
     524                    }
     525                    else
    512526                        rc = VERR_NO_MEMORY;
    513                         break;
    514                     }
    515 
    516                     rc = CFGMR3GetName(pCur, pszBwGrpId, cbName);
    517                     AssertRC(rc);
    518 
    519                     if (RT_SUCCESS(rc))
    520                         rc = CFGMR3QueryU64(pCur, "Max", &cbMax);
    521                     if (RT_SUCCESS(rc))
    522                         rc = pdmNsBwGroupCreate(pShaper, pszBwGrpId, cbMax);
    523 
    524                     RTMemFree(pszBwGrpId);
    525 
    526527                    if (RT_FAILURE(rc))
    527528                        break;
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