VirtualBox

Changeset 62889 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2016 10:34:46 PM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings

Location:
trunk/src/VBox/Devices
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r62885 r62889  
    12901290    SSMR3PutS32(pSSM, pThis->acpi_irq);
    12911291
    1292     SSMR3PutU32(pSSM, ~0);        /* separator */
     1292    SSMR3PutU32(pSSM, UINT32_MAX);      /* separator */
    12931293
    12941294    /*
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r62885 r62889  
    11471147        SSMR3PutU32(pSSM, pThis->uaPciApicIrqLevels[i]);
    11481148
    1149     SSMR3PutU32(pSSM, ~0);        /* separator */
     1149    SSMR3PutU32(pSSM, UINT32_MAX);  /* separator */
    11501150
    11511151    return ich9pciR3CommonSaveExec(&pThis->aPciBus, pSSM);
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r62885 r62889  
    18701870         chars */
    18711871        if (pThis->cursor_offset < CH_ATTR_SIZE)
    1872             pThis->last_ch_attr[pThis->cursor_offset] = ~0;
     1872            pThis->last_ch_attr[pThis->cursor_offset] = UINT32_MAX;
    18731873        if (cursor_offset < CH_ATTR_SIZE)
    1874             pThis->last_ch_attr[cursor_offset] = ~0;
     1874            pThis->last_ch_attr[cursor_offset] = UINT32_MAX;
    18751875        pThis->cursor_offset = cursor_offset;
    18761876        pThis->cursor_start = pThis->cr[0xa];
     
    45954595            return VERR_PDM_NO_SUCH_LUN;
    45964596    }
    4597 
    4598     return VERR_PDM_LUN_NOT_FOUND;
    45994597}
    46004598
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r62573 r62889  
    518518
    519519    /* terminator */
    520     SSMR3PutU32(pSSM, ~0);
     520    SSMR3PutU32(pSSM, UINT32_MAX);
    521521}
    522522
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r62632 r62889  
    586586    int64_t expire_time;
    587587    int irq_level;
    588     PTMTIMER pTimer = pChan->CTX_SUFF(pPit)->channels[0].CTX_SUFF(pTimer);
    589     Assert(TMTimerIsLockOwner(pTimer));
     588    Assert(TMTimerIsLockOwner(pChan->CTX_SUFF(pPit)->channels[0].CTX_SUFF(pTimer)));
    590589
    591590    if (!pChan->CTX_SUFF(pTimer))
     
    822821         */
    823822        PPITCHANNEL pChan = &pThis->channels[Port];
    824         uint8_t const write_state = pChan->write_state;
    825823        DEVPIT_LOCK_BOTH_RETURN(pThis, VINF_IOM_R3_IOPORT_WRITE);
    826824        switch (pChan->write_state)
     
    900898PDMBOTHCBDECL(int) pitIOPortSpeakerWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    901899{
    902     NOREF(pvUser);
     900    RT_NOREF2(pvUser, Port);
    903901    if (cb == 1)
    904902    {
     
    995993static DECLCALLBACK(int) pitLiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass)
    996994{
     995    RT_NOREF1(uPass);
    997996    PPITSTATE pThis = PDMINS_2_DATA(pDevIns, PPITSTATE);
    998997    SSMR3PutIOPort(pSSM, pThis->IOPortBaseCfg);
     
    11641163static DECLCALLBACK(void) pitInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    11651164{
     1165    RT_NOREF1(pszArgs);
    11661166    PPITSTATE   pThis = PDMINS_2_DATA(pDevIns, PPITSTATE);
    11671167    unsigned    i;
     
    12361236static DECLCALLBACK(void) pitRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    12371237{
     1238    RT_NOREF1(offDelta);
    12381239    PPITSTATE pThis = PDMINS_2_DATA(pDevIns, PPITSTATE);
    12391240    LogFlow(("pitRelocate: \n"));
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r62632 r62889  
    25092509static uint32_t atapiR3GetConfigurationFillFeatureListProfiles(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25102510{
     2511    RT_NOREF1(s);
    25112512    if (cbBuf < 3*4)
    25122513        return 0;
     
    25272528static uint32_t atapiR3GetConfigurationFillFeatureCore(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25282529{
     2530    RT_NOREF1(s);
    25292531    if (cbBuf < 12)
    25302532        return 0;
     
    25422544static uint32_t atapiR3GetConfigurationFillFeatureMorphing(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25432545{
     2546    RT_NOREF1(s);
    25442547    if (cbBuf < 8)
    25452548        return 0;
     
    25562559static uint32_t atapiR3GetConfigurationFillFeatureRemovableMedium(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25572560{
     2561    RT_NOREF1(s);
    25582562    if (cbBuf < 8)
    25592563        return 0;
     
    25712575static uint32_t atapiR3GetConfigurationFillFeatureRandomReadable (ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25722576{
     2577    RT_NOREF1(s);
    25732578    if (cbBuf < 12)
    25742579        return 0;
     
    25872592static uint32_t atapiR3GetConfigurationFillFeatureCDRead(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    25882593{
     2594    RT_NOREF1(s);
    25892595    if (cbBuf < 8)
    25902596        return 0;
     
    26012607static uint32_t atapiR3GetConfigurationFillFeaturePowerManagement(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    26022608{
     2609    RT_NOREF1(s);
    26032610    if (cbBuf < 4)
    26042611        return 0;
     
    26132620static uint32_t atapiR3GetConfigurationFillFeatureTimeout(ATADevState *s, uint8_t *pbBuf, size_t cbBuf)
    26142621{
     2622    RT_NOREF1(s);
    26152623    if (cbBuf < 8)
    26162624        return 0;
     
    52685276            cbBuffer = pCtl->cbRedoDMABuffer;
    52695277            fLastDesc = pCtl->fRedoDMALastDesc;
     5278            DMADesc.pBuffer = DMADesc.cbBuffer = 0; /* Shut up MSC. */
    52705279        }
    52715280        else
     
    54325441 * which is what's there now.
    54335442 */
    5434 static DECLCALLBACK(int) ataR3AsyncIOThread(RTTHREAD ThreadSelf, void *pvUser)
    5435 {
     5443static DECLCALLBACK(int) ataR3AsyncIOThread(RTTHREAD hThreadSelf, void *pvUser)
     5444{
     5445    RT_NOREF1(hThreadSelf);
    54365446    const ATARequest *pReq;
    54375447    uint64_t        u64TS = 0; /* shut up gcc */
     
    61106120                                              RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType)
    61116121{
     6122    RT_NOREF1(cb);
    61126123    PCIATAState *pThis = PCIDEV_2_PCIATASTATE(pPciDev);
    61136124    int         rc = VINF_SUCCESS;
     
    66786689static DECLCALLBACK(int) ataR3SaveLoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    66796690{
    6680     PCIATAState    *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *);
     6691    RT_NOREF1(pSSM);
     6692    PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *);
    66816693
    66826694    /* sanity - the suspend notification will wait on the async stuff. */
     
    66936705static DECLCALLBACK(int) ataR3LiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass)
    66946706{
    6695     PCIATAState    *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *);
     6707    RT_NOREF1(uPass);
     6708    PCIATAState *pThis = PDMINS_2_DATA(pDevIns, PCIATAState *);
    66966709
    66976710    SSMR3PutU8(pSSM, pThis->u8Type);
     
    67896802    }
    67906803
    6791     return SSMR3PutU32(pSSM, ~0); /* sanity/terminator */
     6804    return SSMR3PutU32(pSSM, UINT32_MAX); /* sanity/terminator */
    67926805}
    67936806
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