VirtualBox

Changeset 63419 in vbox for trunk


Ignore:
Timestamp:
Aug 13, 2016 5:04:36 PM (8 years ago)
Author:
vboxsync
Message:

BusMouseSample: warnings

Location:
trunk/src/VBox/ExtPacks/BusMouseSample
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp

    r62496 r63419  
    244244static DECLCALLBACK(void) bmsTimerCallback(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    245245{
     246    RT_NOREF(pvUser);
    246247    MouState   *pThis = PDMINS_2_DATA(pDevIns, MouState *);
    247248    uint8_t     irq_bit;
     
    420421        default:
    421422            AssertMsgFailed(("invalid port %#x\n", offPort));
     423            uValue = 0xff;
    422424            break;
    423425    }
     
    602604 * @interface_method_impl{PDMIMOUSEPORT, pfnPutEventAbs}
    603605 */
    604 static DECLCALLBACK(int) mouPutEventAbs(PPDMIMOUSEPORT pInterface, uint32_t x,
    605                                         uint32_t y, int32_t dz, int32_t dw,
    606                                         uint32_t fButtons)
    607 {
     606static DECLCALLBACK(int) mouPutEventAbs(PPDMIMOUSEPORT pInterface, uint32_t x, uint32_t y,
     607                                        int32_t dz, int32_t dw, uint32_t fButtons)
     608{
     609    RT_NOREF(pInterface, x, y, dz, dw, fButtons);
    608610    AssertFailedReturn(VERR_NOT_SUPPORTED);
    609611}
     
    615617                                               const uint64_t *pau64Contacts, uint32_t u32ScanTime)
    616618{
     619    RT_NOREF(pInterface, cContacts, pau64Contacts, u32ScanTime);
    617620    AssertFailedReturn(VERR_NOT_SUPPORTED);
    618621}
     
    712715            break;
    713716    }
     717#else
     718    RT_NOREF(pDevIns, iLUN, fFlags);
    714719#endif
    715720}
     
    721726static DECLCALLBACK(void) mouRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    722727{
    723     MouState    *pThis = PDMINS_2_DATA(pDevIns, MouState *);
     728    RT_NOREF(offDelta);
     729    MouState *pThis = PDMINS_2_DATA(pDevIns, MouState *);
    724730    pThis->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
    725731}
     
    731737static DECLCALLBACK(int) mouConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    732738{
     739    RT_NOREF(iInstance);
     740    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    733741    MouState   *pThis = PDMINS_2_DATA(pDevIns, MouState *);
    734742    int         rc;
     
    738746    Assert(iInstance == 0);
    739747
    740     PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    741748
    742749    /*
  • trunk/src/VBox/ExtPacks/BusMouseSample/VBoxBusMouseMain.cpp

    r62496 r63419  
    7979static DECLCALLBACK(int)  vboxBusMouseExtPack_VMConfigureVMM(PCVBOXEXTPACKREG pThis, IConsole *pConsole, PVM pVM)
    8080{
     81    RT_NOREF(pThis, pConsole);
     82
    8183    /*
    8284     * Find the bus mouse module and tell PDM to load it.
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