VirtualBox

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


Ignore:
Timestamp:
Jul 30, 2016 11:55:29 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109312
Message:

Storage: warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r62482 r62734  
    509509static DECLCALLBACK(int) vdScriptCallbackPrint(PVDSCRIPTARG paScriptArgs, void *pvUser)
    510510{
     511    NOREF(pvUser);
    511512    RTPrintf(paScriptArgs[0].psz);
    512513    return VINF_SUCCESS;
     
    515516static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
    516517{
     518    NOREF(pvUser);
    517519    RTPrintf("tstVDIo: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS);
    518520    RTPrintfV(pszFormat, va);
     
    522524static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va)
    523525{
     526    NOREF(pvUser);
    524527    RTPrintf("tstVDIo: ");
    525528    RTPrintfV(pszFormat, va);
     
    554557    bool fIgnoreFlush = false;
    555558    bool fHonorSame = false;
    556     PVDIOBACKEND pIoBackend = NULL;
    557559
    558560    pcszDisk = paScriptArgs[0].psz;
     
    710712    uint64_t cbIo = 0;
    711713    uint64_t cbBlkSize = 0;
    712     bool fDataProviderRnd = false;
    713     bool fPrintStats = false;
    714714    uint64_t offStart = 0;
    715715    uint64_t offEnd = 0;
     
    16431643static DECLCALLBACK(int) vdScriptHandlerIoRngDestroy(PVDSCRIPTARG paScriptArgs, void *pvUser)
    16441644{
     1645    RT_NOREF1(paScriptArgs);
    16451646    PVDTESTGLOB pGlob = (PVDTESTGLOB)pvUser;
    16461647
     
    17671768static DECLCALLBACK(int) vdScriptHandlerSleep(PVDSCRIPTARG paScriptArgs, void *pvUser)
    17681769{
    1769     int rc = VINF_SUCCESS;
     1770    RT_NOREF1(pvUser);
    17701771    uint64_t cMillies = paScriptArgs[0].u64;
    17711772
    1772     rc = RTThreadSleep(cMillies);
     1773    int rc = RTThreadSleep(cMillies);
    17731774    return rc;
    17741775}
     
    19992000static DECLCALLBACK(int) vdScriptHandlerPrintMsg(PVDSCRIPTARG paScriptArgs, void *pvUser)
    20002001{
     2002    RT_NOREF1(pvUser);
    20012003    RTPrintf("%s\n", paScriptArgs[0].psz);
    20022004    return VINF_SUCCESS;
     
    21942196static DECLCALLBACK(int) tstVDIoFileClose(void *pvUser, void *pStorage)
    21952197{
     2198    RT_NOREF1(pvUser);
    21962199    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    21972200
     
    22422245static DECLCALLBACK(int) tstVDIoFileMove(void *pvUser, const char *pcszSrc, const char *pcszDst, unsigned fMove)
    22432246{
     2247    RT_NOREF1(fMove);
    22442248    int rc = VINF_SUCCESS;
    22452249    PVDTESTGLOB pGlob = (PVDTESTGLOB)pvUser;
     
    22762280static DECLCALLBACK(int) tstVDIoFileGetFreeSpace(void *pvUser, const char *pcszFilename, int64_t *pcbFreeSpace)
    22772281{
     2282    RT_NOREF2(pvUser, pcszFilename);
    22782283    AssertPtrReturn(pcbFreeSpace, VERR_INVALID_POINTER);
    22792284
     
    22842289static DECLCALLBACK(int) tstVDIoFileGetModificationTime(void *pvUser, const char *pcszFilename, PRTTIMESPEC pModificationTime)
    22852290{
     2291    RT_NOREF2(pvUser, pcszFilename);
    22862292    AssertPtrReturn(pModificationTime, VERR_INVALID_POINTER);
    22872293
     
    22922298static DECLCALLBACK(int) tstVDIoFileGetSize(void *pvUser, void *pStorage, uint64_t *pcbSize)
    22932299{
     2300    RT_NOREF1(pvUser);
    22942301    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    22952302
     
    22992306static DECLCALLBACK(int) tstVDIoFileSetSize(void *pvUser, void *pStorage, uint64_t cbSize)
    23002307{
     2308    RT_NOREF1(pvUser);
    23012309    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    23022310
     
    23062314static DECLCALLBACK(int) tstVDIoFileSetAllocationSize(void *pvUser, void *pStorage, uint64_t cbSize, uint32_t fFlags)
    23072315{
     2316    RT_NOREF4(pvUser, pStorage, cbSize, fFlags);
    23082317    return VERR_NOT_SUPPORTED;
    23092318}
     
    23122321                                              const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten)
    23132322{
     2323    RT_NOREF1(pvUser);
    23142324    int rc = VINF_SUCCESS;
    23152325    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
     
    23362346                                             void *pvBuffer, size_t cbBuffer, size_t *pcbRead)
    23372347{
     2348    RT_NOREF1(pvUser);
    23382349    int rc = VINF_SUCCESS;
    23392350    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
     
    23592370static DECLCALLBACK(int) tstVDIoFileFlushSync(void *pvUser, void *pStorage)
    23602371{
     2372    RT_NOREF1(pvUser);
    23612373    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    23622374    int rc = VDIoBackendTransfer(pIoStorage->pFile->pIoStorage, VDIOTXDIR_FLUSH, 0,
     
    23712383                                              void **ppTask)
    23722384{
    2373     int rc = VINF_SUCCESS;
    2374     PVDTESTGLOB pGlob = (PVDTESTGLOB)pvUser;
     2385    RT_NOREF2(pvUser, ppTask);
     2386    int rc = VINF_SUCCESS;
    23752387    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    23762388    RTSGBUF SgBuf;
     
    23932405                                               void **ppTask)
    23942406{
    2395     int rc = VINF_SUCCESS;
    2396     PVDTESTGLOB pGlob = (PVDTESTGLOB)pvUser;
     2407    RT_NOREF2(pvUser, ppTask);
     2408    int rc = VINF_SUCCESS;
    23972409    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    23982410    RTSGBUF SgBuf;
     
    24132425                                               void **ppTask)
    24142426{
    2415     int rc = VINF_SUCCESS;
    2416     PVDTESTGLOB pGlob = (PVDTESTGLOB)pvUser;
     2427    RT_NOREF2(pvUser, ppTask);
     2428    int rc = VINF_SUCCESS;
    24172429    PVDSTORAGE pIoStorage = (PVDSTORAGE)pStorage;
    24182430
     
    24502462                           : pIoTest->offEnd - pIoTest->offStart;
    24512463
    2452         pIoTest->u.Rnd.cBlocks = cbRange / cbBlkSize + ((cbRange % cbBlkSize) ? 1 : 0);
     2464        pIoTest->u.Rnd.cBlocks = (uint32_t)(cbRange / cbBlkSize + (cbRange % cbBlkSize ? 1 : 0));
    24532465        pIoTest->u.Rnd.cBlocksLeft = pIoTest->u.Rnd.cBlocks;
    24542466        pIoTest->u.Rnd.pbMapAccessed = (uint8_t *)RTMemAllocZ(pIoTest->u.Rnd.cBlocks / 8
     
    25902602static DECLCALLBACK(void) tstVDIoTestReqComplete(void *pvUser1, void *pvUser2, int rcReq)
    25912603{
     2604    RT_NOREF1(rcReq);
    25922605    PVDIOREQ pIoReq = (PVDIOREQ)pvUser1;
    25932606    RTSEMEVENT hEventSem = (RTSEMEVENT)pvUser2;
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