VirtualBox

Changeset 62729 in vbox


Ignore:
Timestamp:
Jul 30, 2016 1:54:06 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109303
Message:

Storage: warnings.

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

Legend:

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

    r62482 r62729  
    6565{
    6666    /* We don't close anything. */
     67    RT_NOREF1(pvThis);
    6768    return VINF_SUCCESS;
    6869}
  • trunk/src/VBox/Storage/VDIfVfs2.cpp

    r62482 r62729  
    167167                                          PFNVDCOMPLETED pfnCompleted, void **ppInt)
    168168{
     169    RT_NOREF1(pszLocation);
    169170    PVDIFFROMVFS pThis = (PVDIFFROMVFS)pvUser;
    170171
     
    201202    AssertReturn(pThis->fOpened, VERR_INVALID_HANDLE);
    202203
    203     uint32_t cRefs = RTVfsIoStrmRelease(pThis->hVfsIos);
     204    RTVfsIoStrmRelease(pThis->hVfsIos);
    204205    pThis->hVfsIos = NIL_RTVFSIOSTREAM;
    205206
  • trunk/src/VBox/Storage/testcase/VDIoBackendMem.cpp

    r62482 r62729  
    200200{
    201201    PVDIOBACKENDMEM pIoBackend = (PVDIOBACKENDMEM)pvUser;
     202    RT_NOREF1(hThread);
    202203
    203204    while (pIoBackend->fRunning)
  • trunk/src/VBox/Storage/testcase/tstVD-2.cpp

    r62482 r62729  
    4646static DECLCALLBACK(bool) tstAreKeysValid(void *pvUser, const char *pszzValid)
    4747{
     48    RT_NOREF2(pvUser, pszzValid);
    4849    return true;
    4950}
     
    5960static DECLCALLBACK(int) tstQuerySize(void *pvUser, const char *pszName, size_t *pcbValue)
    6061{
     62    RT_NOREF1(pvUser);
    6163    const char *pszValue = tstGetValueByKey(pszName);
    6264    if (!pszValue)
     
    6870static DECLCALLBACK(int) tstQuery(void *pvUser, const char *pszName, char *pszValue, size_t cchValue)
    6971{
     72    RT_NOREF1(pvUser);
    7073    const char *pszTmp = tstGetValueByKey(pszName);
    7174    if (!pszValue)
  • trunk/src/VBox/Storage/testcase/tstVD.cpp

    r62482 r62729  
    4848static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
    4949{
     50    RT_NOREF1(pvUser);
    5051    g_cErrors++;
    5152    RTPrintf("tstVD: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS);
     
    5657static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va)
    5758{
     59    RT_NOREF1(pvUser);
    5860    RTPrintf("tstVD: ");
    5961    RTPrintfV(pszFormat, va);
     
    120122{
    121123    int rc;
    122     PVBOXHDD pVD = NULL;
    123     VDGEOMETRY       PCHS = { 0, 0, 0 };
    124     VDGEOMETRY       LCHS = { 0, 0, 0 };
     124    PVBOXHDD         pVD = NULL;
    125125    PVDINTERFACE     pVDIfs = NULL;
    126126    VDINTERFACEERROR VDIfError;
     
    404404static void mergeSegments(PSEGMENT pBaseSegment, PSEGMENT pDiffSegment, PSEGMENT pMergeSegment, uint32_t u32MaxLength)
    405405{
     406    RT_NOREF1(u32MaxLength);
     407
    406408    while (pBaseSegment->u32Length > 0 || pDiffSegment->u32Length > 0)
    407409    {
  • trunk/src/VBox/Storage/testcase/tstVDFill.cpp

    r62471 r62729  
    4242static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
    4343{
     44    RT_NOREF1(pvUser);
    4445    g_cErrors++;
    4546    RTPrintf("tstVDFill: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS);
     
    5051static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va)
    5152{
     53    RT_NOREF1(pvUser);
    5254    RTPrintf("tstVDFill: ");
    5355    RTPrintfV(pszFormat, va);
  • trunk/src/VBox/Storage/testcase/tstVDSnap.cpp

    r62482 r62729  
    8686static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
    8787{
     88    RT_NOREF1(pvUser);
    8889    g_cErrors++;
    8990    RTPrintf("tstVDSnap: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS);
     
    9495static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va)
    9596{
     97    RT_NOREF1(pvUser);
    9698    RTPrintf("tstVDSnap: ");
    9799    RTPrintfV(pszFormat, va);
     
    123125}
    124126
    125 static int tstVDSnapWrite(PVBOXHDD pVD, PVDDISKSEG paDiskSegments,
    126                           uint32_t cDiskSegments, uint64_t cbDisk, bool fInit)
    127 {
     127static int tstVDSnapWrite(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk, bool fInit)
     128{
     129    RT_NOREF1(cbDisk);
    128130    int rc = VINF_SUCCESS;
    129131
     
    152154static int tstVDSnapReadVerify(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk)
    153155{
     156    RT_NOREF1(cbDisk);
    154157    int rc = VINF_SUCCESS;
    155158    uint8_t *pbBuf = (uint8_t *)RTMemAlloc(_1M);
  • trunk/src/VBox/Storage/testcase/vbox-img.cpp

    r62482 r62729  
    111111static DECLCALLBACK(void) handleVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
    112112{
    113     NOREF(pvUser);
    114     NOREF(rc);
     113    RT_NOREF2(pvUser, rc);
     114    RT_SRC_POS_NOREF();
    115115    RTMsgErrorV(pszFormat, va);
    116116}
     
    477477                                    void **ppStorage)
    478478{
    479     NOREF(pvUser);
     479    RT_NOREF2(pvUser, pszLocation);
     480
    480481    /* Validate input. */
    481482    AssertPtrReturn(ppStorage, VERR_INVALID_POINTER);
     
    670671                                     void **ppStorage)
    671672{
    672     NOREF(pvUser);
     673    RT_NOREF2(pvUser, pszLocation);
     674
    673675    /* Validate input. */
    674676    AssertPtrReturn(ppStorage, VERR_INVALID_POINTER);
     
    14381440static DECLCALLBACK(bool) vdIfCfgCreateBaseAreKeysValid(void *pvUser, const char *pszzValid)
    14391441{
    1440     return VINF_SUCCESS; /** @todo: Implement. */
     1442    RT_NOREF2(pvUser, pszzValid);
     1443    return VINF_SUCCESS; /** @todo Implement. */
    14411444}
    14421445
     
    15781581{
    15791582    int rc = VINF_SUCCESS;
    1580     PVBOXHDD pDisk = NULL;
    15811583    const char *pszFilename = NULL;
    15821584    char *pszBackend = NULL;
     
    16471649    PVBOXHDD pDisk = NULL;
    16481650    const char *pszFilename = NULL;
    1649     bool fDryRun = false;
    16501651
    16511652    /* Parse the command line. */
     
    17061707    const char *pszFilename = NULL;
    17071708    uint64_t    cbNew = 0;
    1708     bool fDryRun = false;
    17091709    VDGEOMETRY LCHSGeometry, PCHSGeometry;
    17101710
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