VirtualBox

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


Ignore:
Timestamp:
Jan 9, 2025 12:27:40 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166671
Message:

Storage/VD.cpp: Some parfait warning fixes about unused assignments und unread variables, bugref:3409

File:
1 edited

Legend:

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

    r107467 r107596  
    895895                if (idxEnd != -1)
    896896                {
    897                     cbThis = (idxEnd - idxStart) * 512;
     897                    cbThis = (size_t)(idxEnd - idxStart) * 512;
    898898                    fAllocated = false;
    899899                }
     
    904904                idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart);
    905905                if (idxEnd != -1)
    906                     cbThis = (idxEnd - idxStart) * 512;
     906                    cbThis = (size_t)(idxEnd - idxStart) * 512;
    907907
    908908
     
    29422942                if (idxEnd != -1)
    29432943                {
    2944                     cbThis = (idxEnd - idxStart) * 512;
     2944                    cbThis = (size_t)(idxEnd - idxStart) * 512;
    29452945                    fAllocated = false;
    29462946                }
     
    29512951                idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart);
    29522952                if (idxEnd != -1)
    2953                     cbThis = (idxEnd - idxStart) * 512;
     2953                    cbThis = (size_t)(idxEnd - idxStart) * 512;
    29542954
    29552955                rc = pDisk->pLast->Backend->pfnDiscard(pDisk->pLast->pBackendData, pIoCtx,
     
    40714071        rc = pVDIo->pInterfaceIo->pfnWriteSync(pVDIo->pInterfaceIo->Core.pvUser,
    40724072                                              pIoStorage->pStorage, uOffset,
    4073                                               Seg.pvSeg, cbWrite, NULL);
     4073                                              Seg.pvSeg, cbTaskWrite, NULL);
    40744074        if (RT_SUCCESS(rc))
    40754075        {
    4076             Assert(pIoCtx->Req.Io.cbTransferLeft >= cbWrite);
    4077             ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbWrite);
     4076            Assert(pIoCtx->Req.Io.cbTransferLeft >= cbTaskWrite);
     4077            ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbTaskWrite);
    40784078        }
    40794079    }
     
    69466946                rc2 = vdThreadStartWrite(pDisk);
    69476947                AssertRC(rc2);
    6948                 fLockWrite = true;
     6948                /*fLockWrite = true; No effect */
    69496949
    69506950                pDisk->pImageRelay = pImageTo;
     
    69526952                rc2 = vdThreadFinishWrite(pDisk);
    69536953                AssertRC(rc2);
    6954                 fLockWrite = false;
     6954                /*fLockWrite = false; No effect */
    69556955            }
    69566956
     
    70477047                rc2 = vdThreadStartWrite(pDisk);
    70487048                AssertRC(rc2);
    7049                 fLockWrite = true;
     7049                /*fLockWrite = true; No effect */
    70507050
    70517051                pDisk->pImageRelay = NULL;
     
    70537053                rc2 = vdThreadFinishWrite(pDisk);
    70547054                AssertRC(rc2);
    7055                 fLockWrite = false;
     7055                /*fLockWrite = false; No effect */
    70567056            }
    70577057        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette