VirtualBox

Changeset 23022 in vbox for trunk/src


Ignore:
Timestamp:
Sep 15, 2009 7:56:27 AM (15 years ago)
Author:
vboxsync
Message:

dbgas.cpp: gcc maybe used uninitialized warnings (annoying, annoying, gcc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgas.cpp

    r22116 r23022  
    12681268    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    12691269
    1270     RTDBGSEGIDX iSeg;
    1271     RTUINTPTR offSeg;
    1272     RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);
     1270    RTDBGSEGIDX iSeg   = NIL_RTDBGSEGIDX; /* shut up gcc */
     1271    RTUINTPTR   offSeg = 0;
     1272    RTDBGMOD    hMod  = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);
    12731273    if (hMod == NIL_RTDBGMOD)
    12741274        return VERR_NOT_FOUND;
     
    13061306    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    13071307
    1308     RTDBGSEGIDX iSeg;
    1309     RTUINTPTR   offSeg;
    1310     RTUINTPTR   MapAddr;
    1311     RTDBGMOD    hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
     1308    RTDBGSEGIDX iSeg    = NIL_RTDBGSEGIDX; /* shut up gcc */
     1309    RTUINTPTR   offSeg  = 0;
     1310    RTUINTPTR   MapAddr = 0;
     1311    RTDBGMOD    hMod    = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
    13121312    if (hMod == NIL_RTDBGMOD)
    13131313    {
     
    13551355    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    13561356
    1357     RTDBGSEGIDX iSeg;
    1358     RTUINTPTR   offSeg;
    1359     RTUINTPTR   MapAddr;
    1360     RTDBGMOD    hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
     1357    RTDBGSEGIDX iSeg    = NIL_RTDBGSEGIDX;
     1358    RTUINTPTR   offSeg  = 0;
     1359    RTUINTPTR   MapAddr = 0;
     1360    RTDBGMOD    hMod    = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
    13611361    if (hMod == NIL_RTDBGMOD)
    13621362    {
     
    16551655    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    16561656
    1657     RTDBGSEGIDX iSeg;
    1658     RTUINTPTR offSeg;
    1659     RTDBGMOD hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);
     1657    RTDBGSEGIDX iSeg   = NIL_RTDBGSEGIDX; /* shut up gcc */
     1658    RTUINTPTR   offSeg = 0;               /* ditto */
     1659    RTDBGMOD    hMod  = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, NULL);
    16601660    if (hMod == NIL_RTDBGMOD)
    16611661        return VERR_NOT_FOUND;
     
    16921692    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    16931693
    1694     RTDBGSEGIDX iSeg;
    1695     RTUINTPTR   offSeg;
    1696     RTUINTPTR   MapAddr;
    1697     RTDBGMOD    hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
     1694    RTDBGSEGIDX iSeg    = NIL_RTDBGSEGIDX; /* shut up gcc */
     1695    RTUINTPTR   offSeg  = 0;
     1696    RTUINTPTR   MapAddr = 0;
     1697    RTDBGMOD    hMod    = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
    16981698    if (hMod == NIL_RTDBGMOD)
    16991699        return VERR_NOT_FOUND;
     
    17331733    RTDBGAS_VALID_RETURN_RC(pDbgAs, VERR_INVALID_HANDLE);
    17341734
    1735     RTDBGSEGIDX iSeg;
    1736     RTUINTPTR   offSeg;
    1737     RTUINTPTR   MapAddr;
    1738     RTDBGMOD    hMod = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
     1735    RTDBGSEGIDX iSeg    = NIL_RTDBGSEGIDX; /* shut up gcc */
     1736    RTUINTPTR   offSeg  = 0;
     1737    RTUINTPTR   MapAddr = 0;
     1738    RTDBGMOD    hMod    = rtDbgAsModuleByAddr(pDbgAs, Addr, &iSeg, &offSeg, &MapAddr);
    17391739    if (hMod == NIL_RTDBGMOD)
    17401740        return VERR_NOT_FOUND;
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