VirtualBox

Changeset 25780 in vbox


Ignore:
Timestamp:
Jan 12, 2010 5:02:35 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56538
Message:

Misc: -Wshadow warnings.

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

Legend:

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

    r25594 r25780  
    998998
    999999                /* Init devices behind the bridge and possibly other bridges as well. */
    1000                 for (int i = 0; i <= 255; i++)
    1001                     pci_bios_init_device(pGlobals, uBus + 1, i, cBridgeDepth + 1, paBridgePositions);
     1000                for (int iDev = 0; iDev <= 255; iDev++)
     1001                    pci_bios_init_device(pGlobals, uBus + 1, iDev, cBridgeDepth + 1, paBridgePositions);
    10021002
    10031003                /* The number of bridges behind the this one is now available. */
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r25732 r25780  
    19861986
    19871987                cbBuf = RT_MIN(4096 - (size_t)rmd.rmd1.bcnt, cbToRecv);
    1988                 RTGCPHYS32 rbadr = PHYSADDR(pThis, rmd.rmd0.rbadr);
     1988                RTGCPHYS32 rbadr2 = PHYSADDR(pThis, rmd.rmd0.rbadr);
    19891989
    19901990                /* We have to leave the critical section here or we risk deadlocking
     
    19921992                 * handler associated with it. See above for additional comments. */
    19931993                PDMCritSectLeave(&pThis->CritSect);
    1994                 PDMDevHlpPhysWrite(pDevIns, rbadr, src, cbBuf);
     1994                PDMDevHlpPhysWrite(pDevIns, rbadr2, src, cbBuf);
    19951995                rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
    19961996                AssertReleaseRC(rc);
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r25219 r25780  
    525525        {
    526526            PDMMEDIAGEOMETRY LCHSGeometry;
    527             int rc = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
    528             AssertRC(rc);
     527            int rc2 = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
     528            AssertRC(rc2);
    529529
    530530            if (i < 4)
     
    586586            {
    587587                PDMMEDIAGEOMETRY LCHSGeometry;
    588                 int rc = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
     588                rc = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
    589589                AssertRC(rc);
    590590
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