VirtualBox

Changeset 62890 in vbox for trunk/src/VBox/Devices/PC


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

Devices: warnings

Location:
trunk/src/VBox/Devices/PC
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp

    r62509 r62890  
    391391
    392392/** No docs, lazy coder. */
    393 int acpiCleanupDsdt(PPDMDEVINS pDevIns,  void *pvPtr)
     393int acpiCleanupDsdt(PPDMDEVINS pDevIns, void *pvPtr)
    394394{
    395395#ifdef VBOX_WITH_DYNAMIC_DSDT
    396396    return cleanupDynamicDsdt(pDevIns, pvPtr);
    397397#else
     398    RT_NOREF1(pDevIns);
    398399    if (pvPtr)
    399400        RTMemFree(pvPtr);
     
    458459int acpiCleanupSsdt(PPDMDEVINS pDevIns, void *pvPtr)
    459460{
     461    RT_NOREF1(pDevIns);
    460462    if (pvPtr)
    461463        RTMemFree(pvPtr);
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r62554 r62890  
    21592159PDMBOTHCBDECL(int) acpiR3SMBusRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    21602160{
     2161    RT_NOREF1(pDevIns);
    21612162    ACPIState *pThis = (ACPIState *)pvUser;
    21622163    DEVACPI_LOCK_R3(pThis);
     
    34313432static DECLCALLBACK(void) acpiR3MemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx)
    34323433{
     3434    RT_NOREF1(enmCtx);
    34333435    ACPIState *pThis = PDMINS_2_DATA(pDevIns, ACPIState *);
    34343436    acpiR3PlantTables(pThis);
  • trunk/src/VBox/Devices/PC/DevFwCommon.cpp

    r62509 r62890  
    10141014void FwCommonPlantMpsTable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, uint16_t cCpus)
    10151015{
     1016    RT_NOREF1(cbMax);
     1017
    10161018    /* configuration table */
    10171019    PMPSCFGTBLHEADER pCfgTab      = (MPSCFGTBLHEADER*)pTable;
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    r62509 r62890  
    883883static DECLCALLBACK(void) picRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    884884{
     885    RT_NOREF1(offDelta);
    885886    PDEVPIC         pThis = PDMINS_2_DATA(pDevIns, PDEVPIC);
    886887    unsigned        i;
     
    898899static DECLCALLBACK(int)  picConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    899900{
     901    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
     902    RT_NOREF1(iInstance);
    900903    PDEVPIC         pThis = PDMINS_2_DATA(pDevIns, PDEVPIC);
    901904    int             rc;
  • trunk/src/VBox/Devices/PC/DevPcArch.cpp

    r62509 r62890  
    146146pcarchIOPortPS2SysControlPortARead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    147147{
     148    RT_NOREF1(pvUser);
    148149    if (cb == 1)
    149150    {
     
    189190static DECLCALLBACK(int)  pcarchConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    190191{
     192    RT_NOREF1(iInstance);
     193    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    191194    PDEVPCARCH  pThis = PDMINS_2_DATA(pDevIns, PDEVPCARCH);
    192195    int         rc;
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r62509 r62890  
    227227static DECLCALLBACK(int) pcbiosIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    228228{
     229    RT_NOREF5(pDevIns, pvUser, Port, pu32, cb);
    229230    return VERR_IOM_IOPORT_UNUSED;
    230231}
     
    236237static DECLCALLBACK(int) pcbiosIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    237238{
     239    RT_NOREF1(pvUser);
     240
    238241    /*
    239242     * Bochs BIOS char printing.
     
    337340static DECLCALLBACK(bool) pcbiosFw_IsHardReset(PPDMDEVINS pDevIns, uint32_t fFlags)
    338341{
     342    RT_NOREF1(fFlags);
    339343    PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS);
    340344    if (pThis->fCheckShutdownStatusForSoftReset)
     
    466470static int setLogicalDiskGeometry(PPDMIBASE pBase, PPDMIMEDIA pHardDisk, PPDMMEDIAGEOMETRY pLCHSGeometry)
    467471{
     472    RT_NOREF1(pBase);
     473
    468474    PDMMEDIAGEOMETRY LCHSGeometry;
    469     int rc = VINF_SUCCESS;
    470 
    471     rc = pHardDisk->pfnBiosGetLCHSGeometry(pHardDisk, &LCHSGeometry);
     475    int rc = pHardDisk->pfnBiosGetLCHSGeometry(pHardDisk, &LCHSGeometry);
    472476    if (   rc == VERR_PDM_GEOMETRY_NOT_SET
    473477        || LCHSGeometry.cCylinders == 0
     
    927931static DECLCALLBACK(void) pcbiosMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx)
    928932{
    929     PDEVPCBIOS  pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS);
     933    RT_NOREF1(enmCtx);
     934    PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS);
    930935    LogFlow(("pcbiosMemSetup:\n"));
    931936
     
    10751080static DECLCALLBACK(int)  pcbiosConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    10761081{
     1082    RT_NOREF1(iInstance);
    10771083    PDEVPCBIOS  pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS);
    10781084    int         rc;
     
    15641570        const uint8_t  *pu8LanBootBinary = NULL;
    15651571        uint64_t        cbLanBootBinary;
    1566         uint64_t        cbFileLanBoot;
     1572        uint64_t        cbFileLanBoot = 0;
    15671573
    15681574        /*
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r62889 r62890  
    11431143static DECLCALLBACK(void) pitTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    11441144{
     1145    RT_NOREF1(pDevIns);
    11451146    PPITCHANNEL pChan = (PPITCHANNEL)pvUser;
    11461147    STAM_PROFILE_ADV_START(&pChan->CTX_SUFF(pPit)->StatPITHandler, a);
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r62509 r62890  
    478478static DECLCALLBACK(void) rtcCmosBankInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    479479{
     480    RT_NOREF1(pszArgs);
    480481    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    481482
     
    502503static DECLCALLBACK(void) rtcCmosBank2Info(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    503504{
     505    RT_NOREF1(pszArgs);
    504506    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    505507
     
    524526static DECLCALLBACK(void) rtcCmosClockInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    525527{
     528    RT_NOREF1(pszArgs);
    526529    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    527530    uint8_t u8Sec   = from_bcd(pThis, pThis->cmos_data[RTC_SECONDS]);
     
    551554static DECLCALLBACK(void) rtcTimerPeriodic(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    552555{
     556    RT_NOREF2(pTimer, pvUser);
    553557    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    554558    Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer)));
     
    632636static DECLCALLBACK(void) rtcTimerSecond(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    633637{
     638    RT_NOREF2(pTimer, pvUser);
    634639    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    635640    Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer)));
     
    692697static DECLCALLBACK(void) rtcTimerSecond2(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    693698{
     699    RT_NOREF2(pTimer, pvUser);
    694700    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    695701    Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer)));
     
    739745static DECLCALLBACK(int) rtcLiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass)
    740746{
     747    RT_NOREF1(uPass);
    741748    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    742749
     
    10381045static DECLCALLBACK(void) rtcRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    10391046{
     1047    RT_NOREF1(offDelta);
    10401048    PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    10411049
     
    10651073static DECLCALLBACK(int)  rtcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    10661074{
     1075    RT_NOREF1(iInstance);
     1076    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    10671077    PRTCSTATE   pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE);
    10681078    int         rc;
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