VirtualBox

Changeset 63514 in vbox for trunk/src


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

VBoxNetAdp: warnings (clang)

File:
1 edited

Legend:

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

    r62490 r63514  
    124124    /*.d_mmap     = */eno_mmap,
    125125    /*.d_strategy = */eno_strat,
    126     /*.d_getc     = */eno_getc,
    127     /*.d_putc     = */eno_putc,
     126    /*.d_getc     = */(void *)(uintptr_t)&enodev, //eno_getc,
     127    /*.d_putc     = */(void *)(uintptr_t)&enodev, //eno_putc,
    128128    /*.d_type     = */0
    129129};
     
    304304void vboxNetAdpOsDestroy(PVBOXNETADP pThis)
    305305{
    306     u_int32_t i;
    307306    /* Bring down the interface */
    308307    int rc = VINF_SUCCESS;
     
    344343static int VBoxNetAdpDarwinOpen(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess)
    345344{
     345    RT_NOREF(Dev, fFlags, fDevType, pProcess);
     346#ifdef LOG_ENABLED
    346347    char szName[128];
    347348    szName[0] = '\0';
    348349    proc_name(proc_pid(pProcess), szName, sizeof(szName));
    349350    Log(("VBoxNetAdpDarwinOpen: pid=%d '%s'\n", proc_pid(pProcess), szName));
     351#endif
    350352    return 0;
    351353}
     
    356358static int VBoxNetAdpDarwinClose(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess)
    357359{
     360    RT_NOREF(Dev, fFlags, fDevType, pProcess);
    358361    Log(("VBoxNetAdpDarwinClose: pid=%d\n", proc_pid(pProcess)));
    359362    return 0;
     
    372375static int VBoxNetAdpDarwinIOCtl(dev_t Dev, u_long iCmd, caddr_t pData, int fFlags, struct proc *pProcess)
    373376{
     377    RT_NOREF(Dev, fFlags, pProcess);
    374378    uint32_t cbReq = IOCPARM_LEN(iCmd);
    375379    PVBOXNETADPREQ pReq = (PVBOXNETADPREQ)pData;
     
    440444static kern_return_t    VBoxNetAdpDarwinStart(struct kmod_info *pKModInfo, void *pvData)
    441445{
     446    RT_NOREF(pKModInfo, pvData);
    442447    int rc;
    443448
     
    492497static kern_return_t VBoxNetAdpDarwinStop(struct kmod_info *pKModInfo, void *pvData)
    493498{
     499    RT_NOREF(pKModInfo, pvData);
    494500    Log(("VBoxNetAdpDarwinStop\n"));
    495501
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