Changeset 62729 in vbox
- Timestamp:
- Jul 30, 2016 1:54:06 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109303
- Location:
- trunk/src/VBox/Storage
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDIfVfs.cpp
r62482 r62729 65 65 { 66 66 /* We don't close anything. */ 67 RT_NOREF1(pvThis); 67 68 return VINF_SUCCESS; 68 69 } -
trunk/src/VBox/Storage/VDIfVfs2.cpp
r62482 r62729 167 167 PFNVDCOMPLETED pfnCompleted, void **ppInt) 168 168 { 169 RT_NOREF1(pszLocation); 169 170 PVDIFFROMVFS pThis = (PVDIFFROMVFS)pvUser; 170 171 … … 201 202 AssertReturn(pThis->fOpened, VERR_INVALID_HANDLE); 202 203 203 uint32_t cRefs =RTVfsIoStrmRelease(pThis->hVfsIos);204 RTVfsIoStrmRelease(pThis->hVfsIos); 204 205 pThis->hVfsIos = NIL_RTVFSIOSTREAM; 205 206 -
trunk/src/VBox/Storage/testcase/VDIoBackendMem.cpp
r62482 r62729 200 200 { 201 201 PVDIOBACKENDMEM pIoBackend = (PVDIOBACKENDMEM)pvUser; 202 RT_NOREF1(hThread); 202 203 203 204 while (pIoBackend->fRunning) -
trunk/src/VBox/Storage/testcase/tstVD-2.cpp
r62482 r62729 46 46 static DECLCALLBACK(bool) tstAreKeysValid(void *pvUser, const char *pszzValid) 47 47 { 48 RT_NOREF2(pvUser, pszzValid); 48 49 return true; 49 50 } … … 59 60 static DECLCALLBACK(int) tstQuerySize(void *pvUser, const char *pszName, size_t *pcbValue) 60 61 { 62 RT_NOREF1(pvUser); 61 63 const char *pszValue = tstGetValueByKey(pszName); 62 64 if (!pszValue) … … 68 70 static DECLCALLBACK(int) tstQuery(void *pvUser, const char *pszName, char *pszValue, size_t cchValue) 69 71 { 72 RT_NOREF1(pvUser); 70 73 const char *pszTmp = tstGetValueByKey(pszName); 71 74 if (!pszValue) -
trunk/src/VBox/Storage/testcase/tstVD.cpp
r62482 r62729 48 48 static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) 49 49 { 50 RT_NOREF1(pvUser); 50 51 g_cErrors++; 51 52 RTPrintf("tstVD: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS); … … 56 57 static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va) 57 58 { 59 RT_NOREF1(pvUser); 58 60 RTPrintf("tstVD: "); 59 61 RTPrintfV(pszFormat, va); … … 120 122 { 121 123 int rc; 122 PVBOXHDD pVD = NULL; 123 VDGEOMETRY PCHS = { 0, 0, 0 }; 124 VDGEOMETRY LCHS = { 0, 0, 0 }; 124 PVBOXHDD pVD = NULL; 125 125 PVDINTERFACE pVDIfs = NULL; 126 126 VDINTERFACEERROR VDIfError; … … 404 404 static void mergeSegments(PSEGMENT pBaseSegment, PSEGMENT pDiffSegment, PSEGMENT pMergeSegment, uint32_t u32MaxLength) 405 405 { 406 RT_NOREF1(u32MaxLength); 407 406 408 while (pBaseSegment->u32Length > 0 || pDiffSegment->u32Length > 0) 407 409 { -
trunk/src/VBox/Storage/testcase/tstVDFill.cpp
r62471 r62729 42 42 static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) 43 43 { 44 RT_NOREF1(pvUser); 44 45 g_cErrors++; 45 46 RTPrintf("tstVDFill: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS); … … 50 51 static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va) 51 52 { 53 RT_NOREF1(pvUser); 52 54 RTPrintf("tstVDFill: "); 53 55 RTPrintfV(pszFormat, va); -
trunk/src/VBox/Storage/testcase/tstVDSnap.cpp
r62482 r62729 86 86 static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) 87 87 { 88 RT_NOREF1(pvUser); 88 89 g_cErrors++; 89 90 RTPrintf("tstVDSnap: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS); … … 94 95 static DECLCALLBACK(int) tstVDMessage(void *pvUser, const char *pszFormat, va_list va) 95 96 { 97 RT_NOREF1(pvUser); 96 98 RTPrintf("tstVDSnap: "); 97 99 RTPrintfV(pszFormat, va); … … 123 125 } 124 126 125 static int tstVDSnapWrite(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, 126 uint32_t cDiskSegments, uint64_t cbDisk, bool fInit) 127 { 127 static int tstVDSnapWrite(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk, bool fInit) 128 { 129 RT_NOREF1(cbDisk); 128 130 int rc = VINF_SUCCESS; 129 131 … … 152 154 static int tstVDSnapReadVerify(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk) 153 155 { 156 RT_NOREF1(cbDisk); 154 157 int rc = VINF_SUCCESS; 155 158 uint8_t *pbBuf = (uint8_t *)RTMemAlloc(_1M); -
trunk/src/VBox/Storage/testcase/vbox-img.cpp
r62482 r62729 111 111 static DECLCALLBACK(void) handleVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) 112 112 { 113 NOREF(pvUser);114 NOREF(rc);113 RT_NOREF2(pvUser, rc); 114 RT_SRC_POS_NOREF(); 115 115 RTMsgErrorV(pszFormat, va); 116 116 } … … 477 477 void **ppStorage) 478 478 { 479 NOREF(pvUser); 479 RT_NOREF2(pvUser, pszLocation); 480 480 481 /* Validate input. */ 481 482 AssertPtrReturn(ppStorage, VERR_INVALID_POINTER); … … 670 671 void **ppStorage) 671 672 { 672 NOREF(pvUser); 673 RT_NOREF2(pvUser, pszLocation); 674 673 675 /* Validate input. */ 674 676 AssertPtrReturn(ppStorage, VERR_INVALID_POINTER); … … 1438 1440 static DECLCALLBACK(bool) vdIfCfgCreateBaseAreKeysValid(void *pvUser, const char *pszzValid) 1439 1441 { 1440 return VINF_SUCCESS; /** @todo: Implement. */ 1442 RT_NOREF2(pvUser, pszzValid); 1443 return VINF_SUCCESS; /** @todo Implement. */ 1441 1444 } 1442 1445 … … 1578 1581 { 1579 1582 int rc = VINF_SUCCESS; 1580 PVBOXHDD pDisk = NULL;1581 1583 const char *pszFilename = NULL; 1582 1584 char *pszBackend = NULL; … … 1647 1649 PVBOXHDD pDisk = NULL; 1648 1650 const char *pszFilename = NULL; 1649 bool fDryRun = false;1650 1651 1651 1652 /* Parse the command line. */ … … 1706 1707 const char *pszFilename = NULL; 1707 1708 uint64_t cbNew = 0; 1708 bool fDryRun = false;1709 1709 VDGEOMETRY LCHSGeometry, PCHSGeometry; 1710 1710
Note:
See TracChangeset
for help on using the changeset viewer.