VirtualBox

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


Ignore:
Timestamp:
Aug 12, 2016 4:45:31 PM (8 years ago)
Author:
vboxsync
Message:

warnings (gcc)

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

Legend:

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

    r62632 r63369  
    5151/* Internals */
    5252namespace Phy {
     53#if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)
    5354    /** Retrieves state name by id */
    5455    static const char * getStateName(uint16_t u16State);
     56#endif
    5557    /** Look up register index by address. */
    5658    static int lookupRegister(uint32_t u32Address);
     
    478480}
    479481
     482#if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)
    480483static const char * Phy::getStateName(uint16_t u16State)
    481484{
     
    493496    return (u16State < RT_ELEMENTS(pcszState)) ? pcszState[u16State] : "<invalid>";
    494497}
     498#endif
    495499
    496500bool Phy::readMDIO(PPHY pPhy)
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r63218 r63369  
    169169                                                  PCPDMNETWORKGSO pGso, PPPDMSCATTERGATHER ppSgBuf)
    170170{
     171    RT_NOREF(pInterface);
     172#ifdef VBOX_STRICT
    171173    PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface);
    172174    Assert(RTCritSectIsOwner(&pThis->XmitLock));
     175#endif
    173176
    174177    /*
     
    214217static DECLCALLBACK(int) drvTAPNetworkUp_FreeBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf)
    215218{
     219    RT_NOREF(pInterface);
     220#ifdef VBOX_STRICT
    216221    PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface);
    217222    Assert(RTCritSectIsOwner(&pThis->XmitLock));
     223#endif
     224
    218225    if (pSgBuf)
    219226    {
  • trunk/src/VBox/Devices/Network/DrvVDE.cpp

    r63211 r63369  
    138138                                                  PCPDMNETWORKGSO pGso, PPPDMSCATTERGATHER ppSgBuf)
    139139{
     140    RT_NOREF(pInterface);
     141#ifdef VBOX_STRICT
    140142    PDRVVDE pThis = PDMINETWORKUP_2_DRVVDE(pInterface);
    141143    Assert(RTCritSectIsOwner(&pThis->XmitLock));
     144#endif
    142145
    143146    /*
     
    183186static DECLCALLBACK(int) drvVDENetworkUp_FreeBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf)
    184187{
     188    RT_NOREF(pInterface);
     189#ifdef VBOX_STRICT
    185190    PDRVVDE pThis = PDMINETWORKUP_2_DRVVDE(pInterface);
    186191    Assert(RTCritSectIsOwner(&pThis->XmitLock));
     192#endif
    187193    if (pSgBuf)
    188194    {
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