VirtualBox

Changeset 43259 in vbox


Ignore:
Timestamp:
Sep 9, 2012 4:02:15 PM (12 years ago)
Author:
vboxsync
Message:

fixed a few gcc false positive warnings and two shadowed declarations

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r42927 r43259  
    10841084        bool fLast = RTListNodeIsLast(&g_lstControlFiles, &pFile->Node);
    10851085
    1086         int rc2 = RTFileClose(pFile->hFile);
     1086        rc2 = RTFileClose(pFile->hFile);
    10871087        if (RT_FAILURE(rc2))
    10881088        {
  • trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp

    r42589 r43259  
    144144            char szFormat[128], szValue[128];
    145145            RTStrPrintf(szFormat, sizeof(szFormat), "%%VR{%s}", pszRegNm);
    146             int rc2 = DBGFR3RegPrintf(pVM, idCpu, szValue, sizeof(szValue), szFormat);
     146            rc2 = DBGFR3RegPrintf(pVM, idCpu, szValue, sizeof(szValue), szFormat);
    147147            if (RT_SUCCESS(rc2))
    148148                VMMDEV_TESTING_OUTPUT(("testing: VALUE '%s'%*s: %16s {reg=%s}%s\n",
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r43058 r43259  
    19301930    /* Create the copy context -- it contains all information
    19311931     * the routines need to know when handling the actual copying. */
    1932     PCOPYCONTEXT pContext;
     1932    PCOPYCONTEXT pContext = NULL;
    19331933    vrc = ctrlCopyContextCreate(guest, fVerbose, fDryRun, fHostToGuest,
    19341934                                strUsername, strPassword, strDomain,
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r43201 r43259  
    936936    int vrc = VINF_SUCCESS;
    937937
    938     GuestCtrlCallback *pCallbackRead;
     938    GuestCtrlCallback *pCallbackRead = NULL;
    939939    try
    940940    {
     
    15131513    int vrc = VINF_SUCCESS;
    15141514
    1515     GuestCtrlCallback *pCallbackWrite;
     1515    GuestCtrlCallback *pCallbackWrite = NULL;
    15161516    try
    15171517    {
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