VirtualBox

Changeset 63516 in vbox


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

VBoxGuest: warnings (clang)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-darwin.cpp

    r62521 r63516  
    189189    /*.d_mmap     = */ eno_mmap,
    190190    /*.d_strategy = */ eno_strat,
    191     /*.d_getc     = */ eno_getc,
    192     /*.d_putc     = */ eno_putc,
     191    /*.d_getc     = */ (void *)(uintptr_t)&enodev, //eno_getc,
     192    /*.d_putc     = */ (void *)(uintptr_t)&enodev, //eno_putc,
    193193    /*.d_type     = */ 0
    194194};
     
    228228static kern_return_t    vgdrvDarwinStart(struct kmod_info *pKModInfo, void *pvData)
    229229{
     230    RT_NOREF(pKModInfo, pvData);
     231
    230232    /*
    231233     * Initialize IPRT.
     
    282284static kern_return_t vgdrvDarwinStop(struct kmod_info *pKModInfo, void *pvData)
    283285{
     286    RT_NOREF(pKModInfo, pvData);
    284287    RTR0TermForced();
    285288
     
    315318    {
    316319        int rc2 = cdevsw_remove(g_iMajorDeviceNo, &g_DevCW);
    317         Assert(rc2 == g_iMajorDeviceNo);
     320        Assert(rc2 == g_iMajorDeviceNo); NOREF(rc2);
    318321        g_iMajorDeviceNo = -1;
    319322    }
     
    339342static int vgdrvDarwinOpen(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess)
    340343{
     344    RT_NOREF(fFlags,  fDevType);
     345
    341346    /*
    342347     * Only two minor devices numbers are allowed.
     
    398403static int vgdrvDarwinClose(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess)
    399404{
     405    RT_NOREF(Dev, fFlags, fDevType, pProcess);
    400406    Log(("vgdrvDarwinClose: pid=%d\n", (int)RTProcSelf()));
    401407    Assert(proc_pid(pProcess) == (int)RTProcSelf());
     
    421427static int vgdrvDarwinIOCtl(dev_t Dev, u_long iCmd, caddr_t pData, int fFlags, struct proc *pProcess)
    422428{
     429    RT_NOREF(Dev, fFlags);
    423430    //const bool          fUnrestricted = minor(Dev) == 0;
    424431    const RTPROCESS     Process = proc_pid(pProcess);
     
    460467static int vgdrvDarwinIOCtlSlow(PVBOXGUESTSESSION pSession, u_long iCmd, caddr_t pData, struct proc *pProcess)
    461468{
     469    RT_NOREF(pProcess);
    462470    LogFlow(("vgdrvDarwinIOCtlSlow: pSession=%p iCmd=%p pData=%p pProcess=%p\n", pSession, iCmd, pData, pProcess));
    463471
     
    605613                                        IOService *pProvider, void *pvMsgArg, vm_size_t cbMsgArg)
    606614{
     615    RT_NOREF(pvTarget, pProvider, pvMsgArg, cbMsgArg);
    607616    LogFlow(("VBoxGuest: Got sleep/wake notice. Message type was %x\n", uMessageType));
    608617
     
    717726static bool vgdrvDarwinDirectIrqHandler(OSObject *pOwner, IOFilterInterruptEventSource *pSrc)
    718727{
     728    RT_NOREF(pOwner);
    719729    if (!pSrc)
    720730        return false;
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