VirtualBox

Changeset 45486 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Apr 11, 2013 2:52:10 PM (12 years ago)
Author:
vboxsync
Message:

Storage: Fix unused label and variable warnings

Location:
trunk/src/VBox/Storage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/ISCSI.cpp

    r44528 r45486  
    44284428            ASMBitClear(&aCachingModePage[Offset + 2], 0);
    44294429
    4430             uint8_t aCDBCaching[6];
    44314430            sr.abCDB[0] = SCSI_MODE_SELECT_6;
    44324431            sr.abCDB[1] = 0; /* Don't write the page into NV RAM. */
  • trunk/src/VBox/Storage/VCICache.cpp

    r44528 r45486  
    16671667        *pcbActuallyRead = VCI_BLOCK2BYTE(cBlocksToRead);
    16681668
    1669 out:
    16701669    LogFlowFunc(("returns %Rrc\n", rc));
    16711670    return rc;
     
    16821681    uint64_t cBlocksToWrite = VCI_BYTE2BLOCK(cbToWrite);
    16831682    uint64_t offBlockAddr  = VCI_BYTE2BLOCK(uOffset);
    1684     PVCICACHEEXTENT pExtent;
    16851683
    16861684    AssertPtr(pCache);
     
    16941692
    16951693    *pcbWriteProcess = cbToWrite; /** @todo: Implement. */
    1696 out:
     1694
    16971695    LogFlowFunc(("returns %Rrc\n", rc));
    16981696    return rc;
     
    18651863        rc = VERR_VD_NOT_OPENED;
    18661864
    1867 out:
    18681865    LogFlowFunc(("returns %Rrc\n", rc));
    18691866    return rc;
  • trunk/src/VBox/Storage/VDI.cpp

    r45069 r45486  
    11291129        {
    11301130            int rc2;
    1131             uint64_t cbImage;
    11321131
    11331132            /* Block write complete. Update metadata. */
  • trunk/src/VBox/Storage/VHDX.cpp

    r44529 r45486  
    10641064            u32ChkSumSaved = pHdr1->u32Checksum;
    10651065            pHdr1->u32Checksum = 0;
    1066             //u32ChkSum = RTCrc32C(pHdr1, sizeof(*pHdr1));
     1066            //u32ChkSum = RTCrc32C(pHdr1, RT_OFFSETOF(VhdxHeader, u8Reserved[502]));
    10671067
    10681068            if (   pHdr1->u32Signature == VHDX_HEADER_SIGNATURE
     
    10811081            u32ChkSumSaved = pHdr2->u32Checksum;
    10821082            pHdr2->u32Checksum = 0;
    1083             //u32ChkSum = RTCrc32C(pHdr2, sizeof(*pHdr2));
     1083            //u32ChkSum = RTCrc32C(pHdr2, RT_OFFSETOF(VhdxHeader, u8Reserved[502]));
    10841084
    10851085            if (   pHdr2->u32Signature == VHDX_HEADER_SIGNATURE
     
    20642064        rc = VERR_VD_NOT_OPENED;
    20652065
    2066 out:
    20672066    LogFlowFunc(("returns %Rrc\n", rc));
    20682067    return rc;
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