VirtualBox

Changeset 63512 in vbox for trunk


Ignore:
Timestamp:
Aug 15, 2016 11:13:51 PM (8 years ago)
Author:
vboxsync
Message:

VBoxNetFlt: warnings (clang)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r62490 r63512  
    237237static kern_return_t    VBoxNetFltDarwinStart(struct kmod_info *pKModInfo, void *pvData)
    238238{
    239     int rc;
     239    RT_NOREF(pKModInfo, pvData);
    240240
    241241    /*
     
    243243     * (IPRT is shared with VBoxDrv, it creates the loggers.)
    244244     */
    245     rc = RTR0Init(0);
     245    int rc = RTR0Init(0);
    246246    if (RT_SUCCESS(rc))
    247247    {
     
    283283static kern_return_t VBoxNetFltDarwinStop(struct kmod_info *pKModInfo, void *pvData)
    284284{
     285    RT_NOREF(pKModInfo, pvData);
    285286    Log(("VBoxNetFltDarwinStop\n"));
    286287
     
    569570 * @param   fSrc                The source of the frame.
    570571 */
    571 DECLINLINE(void) vboxNetFltDarwinMBufToSG(PVBOXNETFLTINS pThis, mbuf_t pMBuf, void *pvFrame, PINTNETSG pSG, unsigned cSegs, uint32_t fSrc)
    572 {
    573     NOREF(pThis);
     572DECLINLINE(void) vboxNetFltDarwinMBufToSG(PVBOXNETFLTINS pThis, mbuf_t pMBuf, void *pvFrame, PINTNETSG pSG, unsigned cSegs,
     573                                          uint32_t fSrc)
     574{
     575    RT_NOREF(pThis, fSrc);
    574576
    575577    /*
     
    772774static errno_t vboxNetFltDarwinIffIoCtl(void *pvThis, ifnet_t pIfNet, protocol_family_t eProtocol, u_long uCmd, void *pvArg)
    773775{
     776    RT_NOREF(pIfNet);
    774777    PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvThis;
    775778    LogFlow(("vboxNetFltDarwinIffIoCtl: pThis=%p uCmd=%lx\n", pThis, uCmd));
     
    985988static errno_t vboxNetFltDarwinIffInput(void *pvThis, ifnet_t pIfNet, protocol_family_t eProtocol, mbuf_t *ppMBuf, char **ppchFrame)
    986989{
    987     NOREF(eProtocol);
    988     NOREF(pIfNet);
     990    RT_NOREF(eProtocol, pIfNet);
    989991    return vboxNetFltDarwinIffInputOutputWorker((PVBOXNETFLTINS)pvThis, *ppMBuf, *ppchFrame, INTNETTRUNKDIR_WIRE, eProtocol);
    990992}
     
    994996static DECLCALLBACK(int) vboxNetFltSendDummyWorker(RTTHREAD hThreadSelf, void *pvUser)
    995997{
     998    RT_NOREF(hThreadSelf);
    996999    Assert(pvUser);
    9971000    ifnet_t pIfNet = (ifnet_t)pvUser;
     
    13311334{
    13321335    /* Nothing to do here. */
     1336    RT_NOREF(pThis);
    13331337    return VINF_SUCCESS;
    13341338}
     
    13381342{
    13391343    /* Nothing to do here. */
     1344    RT_NOREF(pThis);
    13401345    return VINF_SUCCESS;
    13411346}
     
    15171522    }
    15181523
    1519     struct net_event_data my_link;
    15201524    ifnet_t pIfNet = pThis->u.s.pIfNet; /* XXX: retain? */
    15211525    ifnet_family_t if_family = ifnet_family(pIfNet);
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