VirtualBox

Changeset 54500 in vbox


Ignore:
Timestamp:
Feb 25, 2015 3:51:45 PM (10 years ago)
Author:
vboxsync
Message:

VBoxManage: gcc false positive warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r54487 r54500  
    428428        rc = createMedium(a, format, filename, DeviceType_Floppy,
    429429                        AccessMode_ReadWrite, pMedium);
     430    else
     431        rc = E_INVALIDARG; /* cannot happen but make gcc happy */
    430432
    431433    if (SUCCEEDED(rc) && pMedium)
     
    639641                        AccessMode_ReadWrite, pMedium,
    640642                        false /* fForceNewUuidOnOpen */, false /* fSilent */);
     643    else
     644        rc = E_INVALIDARG; /* cannot happen but make gcc happy */
    641645    if (FAILED(rc))
    642646        return 1;
     
    832836        rc = openMedium(a, pszSrc, DeviceType_Floppy, AccessMode_ReadOnly, pSrcMedium,
    833837                        false /* fForceNewUuidOnOpen */, false /* fSilent */);
     838    else
     839        rc = E_INVALIDARG; /* cannot happen but make gcc happy */
    834840    if (FAILED(rc))
    835841        return 1;
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