VirtualBox

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


Ignore:
Timestamp:
Aug 9, 2016 3:52:35 PM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings (gcc)

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

Legend:

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

    r62962 r63218  
    21362136}
    21372137
     2138# ifdef IN_RING3 /* currently only used in ring-3 due to stack space requirements of the caller */
    21382139/**
    21392140 * Store a fragment of received packet at the specifed address.
     
    21532154    STAM_PROFILE_ADV_STOP(&pThis->StatReceiveStore, a);
    21542155}
     2156# endif
    21552157
    21562158#else /* !E1K_WITH_RXD_CACHE */
     
    22302232}
    22312233
     2234#ifdef IN_RING3 /* currently only used in ring-3 due to stack space requirements of the caller */
    22322235/**
    22332236 * Set IXSM, IPCS and TCPCS flags according to the packet type.
     
    22492252     * and do verification in software.
    22502253     */
    2251 #if 0
     2254# if 0
    22522255    uint16_t uEtherType = ntohs(*(uint16_t*)(pFrame + 12));
    22532256
     
    22742277            break;
    22752278    }
    2276 #else
     2279# else
    22772280    pStatus->fIXSM = true;
    22782281    RT_NOREF_PV(pThis); RT_NOREF_PV(pFrame); RT_NOREF_PV(cb);
    2279 #endif
     2282# endif
    22802283    return VINF_SUCCESS;
    22812284}
     2285#endif /* IN_RING3 */
    22822286
    22832287/**
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r62902 r63218  
    20152015
    20162016
     2017#ifdef IN_RING3
    20172018/**
    20182019 * Transmit queue consumer
     
    20362037    return true;
    20372038}
     2039#endif /* IN_RING3 */
    20382040
    20392041
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r62511 r63218  
    151151static DECLCALLBACK(int) drvTAPNetworkUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread)
    152152{
     153    RT_NOREF(fOnWorkerThread);
    153154    PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface);
    154155    int rc = RTCritSectTryEnter(&pThis->XmitLock);
     
    230231static DECLCALLBACK(int) drvTAPNetworkUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread)
    231232{
     233    RT_NOREF(fOnWorkerThread);
    232234    PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface);
    233235    STAM_COUNTER_INC(&pThis->StatPktSent);
     
    301303static DECLCALLBACK(void) drvTAPNetworkUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous)
    302304{
     305    RT_NOREF(pInterface, fPromiscuous);
    303306    LogFlow(("drvTAPNetworkUp_SetPromiscuousMode: fPromiscuous=%d\n", fPromiscuous));
    304307    /* nothing to do */
     
    315318static DECLCALLBACK(void) drvTAPNetworkUp_NotifyLinkChanged(PPDMINETWORKUP pInterface, PDMNETWORKLINKSTATE enmLinkState)
    316319{
     320    RT_NOREF(pInterface, enmLinkState);
    317321    LogFlow(("drvTAPNetworkUp_NotifyLinkChanged: enmLinkState=%d\n", enmLinkState));
    318322    /** @todo take action on link down and up. Stop the polling and such like. */
     
    467471static DECLCALLBACK(int) drvTapAsyncIoWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    468472{
     473    RT_NOREF(pThread);
    469474    PDRVTAP pThis = PDMINS_2_DATA(pDrvIns, PDRVTAP);
    470475
     
    843848static DECLCALLBACK(int) drvTAPConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    844849{
     850    RT_NOREF(fFlags);
     851    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    845852    PDRVTAP pThis = PDMINS_2_DATA(pDrvIns, PDRVTAP);
    846     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    847853
    848854    /*
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