VirtualBox

Changeset 62906 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Aug 3, 2016 11:20:21 AM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp

    r62632 r62906  
    302302
    303303#else  /* IN_RING3 */
     304    NOREF(fOnWorkerThread);
     305
    304306    /*
    305307     * Call ring-0 to start the transfer.
     
    399401{
    400402    LogFlow(("drvR3DedicatedNicPowerOff\n"));
    401     PDRVDEDICATEDNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVDEDICATEDNIC);
    402 
    403403    int rc = PDMDrvHlpCallR0(pDrvIns, DRVDEDICATEDNICR0OP_SUSPEND, 0);
    404404    AssertRC(rc);
     
    412412{
    413413    LogFlow(("drvR3DedicatedNicPowerResume\n"));
    414     PDRVDEDICATEDNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVDEDICATEDNIC);
    415 
    416414    int rc = PDMDrvHlpCallR0(pDrvIns, DRVDEDICATEDNICR0OP_RESUME, 0);
    417415    AssertRC(rc);
     
    425423{
    426424    LogFlow(("drvR3DedicatedNicPowerSuspend\n"));
    427     PDRVDEDICATEDNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVDEDICATEDNIC);
    428 
    429425    int rc = PDMDrvHlpCallR0(pDrvIns, DRVDEDICATEDNICR0OP_SUSPEND, 0);
    430426    AssertRC(rc);
     
    438434{
    439435    LogFlow(("drvR3DedicatedNicPowerOn\n"));
    440     PDRVDEDICATEDNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVDEDICATEDNIC);
    441 
    442436    int rc = PDMDrvHlpCallR0(pDrvIns, DRVDEDICATEDNICR0OP_RESUME, 0);
    443437    AssertRC(rc);
     
    467461static DECLCALLBACK(int) drvR3DedicatedNicConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    468462{
     463    RT_NOREF(pCfg, fFlags);
     464    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    469465    PDRVDEDICATEDNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVDEDICATEDNIC);
    470     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    471466
    472467    /*
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r62610 r62906  
    642642static DECLCALLBACK(int) drvR3IntNetXmitWakeUp(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    643643{
     644    RT_NOREF(pThread);
    644645    PDRVINTNET pThis = PDMINS_2_DATA(pDrvIns, PDRVINTNET);
    645646    return SUPSemEventSignal(pThis->pSupDrvSession, pThis->hXmitEvt);
     
    872873 *
    873874 * @returns VINF_SUCCESS (ignored).
    874  * @param   ThreadSelf      Thread handle.
     875 * @param   hThreadSelf     Thread handle.
    875876 * @param   pvUser          Pointer to a DRVINTNET structure.
    876877 */
    877 static DECLCALLBACK(int) drvR3IntNetRecvThread(RTTHREAD ThreadSelf, void *pvUser)
    878 {
     878static DECLCALLBACK(int) drvR3IntNetRecvThread(RTTHREAD hThreadSelf, void *pvUser)
     879{
     880    RT_NOREF(hThreadSelf);
    879881    PDRVINTNET pThis = (PDRVINTNET)pvUser;
    880882    LogFlow(("drvR3IntNetRecvThread: pThis=%p\n", pThis));
     
    934936#if 0
    935937    PDMIBASERC_RETURN_INTERFACE(pThis->pDrvInsR3, pszIID, PDMINETWORKUP, &pThis->INetworkUpRC);
     938#else
     939    RT_NOREF(pThis, pszIID);
    936940#endif
    937941    return NIL_RTRCPTR;
     
    11491153{
    11501154    /* nothing to do here yet */
     1155    RT_NOREF(pDrvIns, offDelta);
    11511156}
    11521157
     
    11861191        AbortWaitReq.fNoMoreWaits = true;
    11871192        int rc = PDMDrvHlpSUPCallVMMR0Ex(pDrvIns, VMMR0_DO_INTNET_IF_ABORT_WAIT, &AbortWaitReq, sizeof(AbortWaitReq));
    1188         AssertMsg(RT_SUCCESS(rc) || rc == VERR_SEM_DESTROYED, ("%Rrc\n", rc));
     1193        AssertMsg(RT_SUCCESS(rc) || rc == VERR_SEM_DESTROYED, ("%Rrc\n", rc)); RT_NOREF_PV(rc);
    11891194    }
    11901195
     
    13471352static DECLCALLBACK(int) drvR3IntNetConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    13481353{
     1354    RT_NOREF(fFlags);
     1355    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    13491356    PDRVINTNET pThis = PDMINS_2_DATA(pDrvIns, PDRVINTNET);
    13501357    bool f;
    1351     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    13521358
    13531359    /*
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