VirtualBox

Changeset 62885 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Aug 2, 2016 4:21:40 PM (8 years ago)
Author:
vboxsync
Message:

Devices: gcc warnings

Location:
trunk/src/VBox/Devices/Bus
Files:
3 edited

Legend:

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

    r62629 r62885  
    21412141static DECLCALLBACK(int)   pciR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    21422142{
     2143    RT_NOREF1(iInstance);
    21432144    Assert(iInstance == 0);
    21442145    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r62631 r62885  
    19431943{
    19441944    PICH9PCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PICH9PCIGLOBALS);
    1945     PVM             pVM = PDMDevHlpGetVM(pDevIns);
    1946     Assert(pVM);
    19471945
    19481946    /*
     
    19631961     */
    19641962    for (int i = 0; i < 256; i++)
    1965     {
    19661963        ich9pciBiosInitDevice(pGlobals, 0, i);
    1967     }
    19681964
    19691965    return VINF_SUCCESS;
     
    25172513
    25182514
    2519 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns,
    2520                                           int        iInstance,
    2521                                           PCFGMNODE  pCfg)
    2522 {
     2515static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE  pCfg)
     2516{
     2517    RT_NOREF1(iInstance);
    25232518    Assert(iInstance == 0);
    25242519    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
  • trunk/src/VBox/Devices/Bus/MsiCommon.cpp

    r62518 r62885  
    201201uint32_t MsiPciConfigRead (PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len)
    202202{
    203     int32_t iOff = u32Address - pDev->Int.s.u8MsiCapOffset;
    204 
    205     Assert(iOff >= 0 && (pciDevIsMsiCapable(pDev) && iOff < pDev->Int.s.u8MsiCapSize));
     203    RT_NOREF1(pDevIns);
     204#if defined(LOG_ENABLED) || defined(VBOX_STRICT)
     205    int32_t off = u32Address - pDev->Int.s.u8MsiCapOffset;
     206    Assert(off >= 0 && (pciDevIsMsiCapable(pDev) && off < pDev->Int.s.u8MsiCapSize));
     207#endif
    206208    uint32_t rv = 0;
    207209
     
    221223    }
    222224
    223     Log2(("MsiPciConfigRead: %d (%d) -> %x\n", iOff, len, rv));
     225    Log2(("MsiPciConfigRead: %d (%d) -> %x\n", off, len, rv));
    224226
    225227    return rv;
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