- Timestamp:
- Oct 19, 2011 11:08:50 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 74450
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgas.cpp
r33663 r39032 758 758 */ 759 759 PAVLPVNODECORE pNode = RTAvlPVRemove(&pDbgAs->ModTree, pMod->Core.Key); 760 Assert(pNode == &pMod->Core); 760 Assert(pNode == &pMod->Core); NOREF(pNode); 761 761 762 762 /* … … 793 793 /* remove from the tree */ 794 794 PAVLRUINTPTRNODECORE pNode = RTAvlrUIntPtrRemove(&pDbgAs->MapTree, pMap->Core.Key); 795 Assert(pNode == &pMap->Core); 795 Assert(pNode == &pMap->Core); NOREF(pNode); 796 796 797 797 /* unlink */ -
trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp
r38620 r39032 1966 1966 uint64_t uSeg = rtDwarfCursor_GetVarSizedU(pCursor, cbInstr - 1, UINT64_MAX); 1967 1967 Log2(("%08x: DW_LNE_set_segment: %ll#x - Watcom Extension\n", offOpCode, uSeg)); 1968 NOREF(uSeg); 1968 1969 /** @todo make use of this? */ 1969 1970 } -
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r38581 r39032 692 692 NOREF(pvBits); 693 693 694 return VERR_NOT_IMPLEMENTED; 694 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 695 695 } 696 696 … … 701 701 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 702 702 703 return VERR_NOT_IMPLEMENTED; 703 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 704 704 } 705 705 … … 711 711 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 712 712 713 return VERR_NOT_IMPLEMENTED; 713 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 714 714 } 715 715 … … 720 720 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 721 721 722 return VERR_NOT_IMPLEMENTED; 722 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 723 723 } 724 724 … … 730 730 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 731 731 732 return VERR_NOT_IMPLEMENTED; 732 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 733 733 } 734 734 … … 740 740 PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod; 741 741 742 return VERR_NOT_IMPLEMENTED; 742 return VERR_NOT_IMPLEMENTED; NOREF(pModElf); 743 743 } 744 744 -
trunk/src/VBox/Runtime/common/misc/circbuf.cpp
r38862 r39032 206 206 pBuf->offWrite = (pBuf->offWrite + cbSize) % pBuf->cbBuf; 207 207 208 size_t cbOldIgnored = 0;209 208 ASMAtomicAddZ(&pBuf->cbUsed, cbSize); 210 209 } -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r38515 r39032 688 688 689 689 uint32_t uIndex; 690 char *pszRet = NULL;691 690 if (RTStrToUInt32Full(&pszArgThis[cchLong], 10, &uIndex) == VINF_SUCCESS) 692 691 pState->uIndex = uIndex; -
trunk/src/VBox/Runtime/common/misc/req.cpp
r33595 r39032 453 453 RTDECL(int) RTReqAlloc(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTREQTYPE enmType) 454 454 { 455 RT_EXPORT_SYMBOL(RTReqAlloc);456 455 /* 457 456 * Validate input. … … 573 572 return VINF_SUCCESS; 574 573 } 574 RT_EXPORT_SYMBOL(RTReqAlloc); 575 575 576 576 -
trunk/src/VBox/Runtime/common/path/RTPathAppendEx.cpp
r34214 r39032 130 130 * Balance slashes and check for buffer overflow. 131 131 */ 132 bool fAddSlash = false;133 132 if (!RTPATH_IS_SLASH(pszPathEnd[-1])) 134 133 { -
trunk/src/VBox/Runtime/common/string/RTStrCatP.cpp
r36407 r39032 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 39 39 * a copy operation. 40 40 */ 41 size_t cbDst = *pcbDst; 42 char *pszDst = RTStrEnd(*ppszDst, *pcbDst); 41 char *pszDstOrg = *ppszDst; 42 size_t cbDst = *pcbDst; 43 char *pszDst = RTStrEnd(pszDstOrg, cbDst); 43 44 AssertReturn(pszDst, VERR_INVALID_PARAMETER); 44 *pcbDst -= pszDst - *ppszDst;45 45 *ppszDst = pszDst; 46 *pcbDst = cbDst - (pszDst - pszDstOrg); 46 47 47 48 return RTStrCopyP(ppszDst, pcbDst, pszSrc); -
trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp
r36555 r39032 548 548 uint32_t *pfRetEvents) 549 549 { 550 PRTVFSMEMFILE pThis = (PRTVFSMEMFILE)pvThis; 551 int rc; 552 550 int rc; 553 551 if (fEvents != RTPOLL_EVT_ERROR) 554 552 { -
trunk/src/VBox/Runtime/common/vfs/vfsstdfile.cpp
r37596 r39032 253 253 uint32_t *pfRetEvents) 254 254 { 255 PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis; 256 int rc; 257 255 int rc; 258 256 if (fEvents != RTPOLL_EVT_ERROR) 259 257 { … … 345 343 static DECLCALLBACK(int) rtVfsStdFile_SetOwner(void *pvThis, RTUID uid, RTGID gid) 346 344 { 347 PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;348 345 #if 0 346 PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis; 349 347 return RTFileSetOwner(pThis->hFile, uid, gid); 350 348 #else -
trunk/src/VBox/Runtime/common/zip/gzipvfs.cpp
r34049 r39032 511 511 * be handed on to zlib later on. 512 512 */ 513 size_t cbRead = 0;514 513 rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), true /*fBlocking*/, NULL /*pcbRead*/); 515 514 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Runtime/common/zip/tar.cpp
r35351 r39032 599 599 uint64_t cbAllWritten = 0; /* Already copied */ 600 600 uint64_t cbRead = 0; /* Actually read in the last step */ 601 uint64_t cbWrite = 0; /* Actually write in the last step */602 601 for (;;) 603 602 { -
trunk/src/VBox/Runtime/r3/isofs.cpp
r34406 r39032 317 317 rc = VERR_FILE_NOT_FOUND; 318 318 319 uint8_t uBuffer[RTISOFS_SECTOR_SIZE];319 uint8_t abBuffer[RTISOFS_SECTOR_SIZE]; 320 320 size_t cbLeft = cbExtent; 321 321 while (!RT_SUCCESS(rc) && cbLeft > 0) 322 322 { 323 size_t cbRead; 324 int rc2 = RTFileRead(pFile->file, (void*)&uBuffer, sizeof(uBuffer), &cbRead); 325 Assert(RT_SUCCESS(rc2) && cbRead == RTISOFS_SECTOR_SIZE); 323 size_t cbRead = 0; 324 int rc2 = RTFileRead(pFile->file, &abBuffer[0], sizeof(abBuffer), &cbRead); 325 AssertRC(rc2); 326 Assert(cbRead == RTISOFS_SECTOR_SIZE); 326 327 cbLeft -= cbRead; 327 328 … … 329 330 while (idx < cbRead) 330 331 { 331 PRTISOFSDIRRECORD pCurRecord = (PRTISOFSDIRRECORD)& uBuffer[idx];332 PRTISOFSDIRRECORD pCurRecord = (PRTISOFSDIRRECORD)&abBuffer[idx]; 332 333 if (pCurRecord->record_length == 0) 333 334 break; … … 336 337 AssertPtr(pszName); 337 338 Assert(idx + sizeof(RTISOFSDIRRECORD) < cbRead); 338 memcpy(pszName, & uBuffer[idx + sizeof(RTISOFSDIRRECORD)], pCurRecord->name_len);339 memcpy(pszName, &abBuffer[idx + sizeof(RTISOFSDIRRECORD)], pCurRecord->name_len); 339 340 pszName[pCurRecord->name_len] = '\0'; /* Force string termination. */ 340 341 -
trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
r37499 r39032 697 697 if (!fNoChDir) 698 698 { 699 int rcChdir = chdir("/"); 699 int rcIgnored = chdir("/"); 700 NOREF(rcIgnored); 700 701 } 701 702 … … 712 713 char szBuf[256]; 713 714 size_t cbPid = RTStrPrintf(szBuf, sizeof(szBuf), "%d\n", pid); 714 int rcWrite = write(fdPidfile, szBuf, cbPid);715 ssize_t cbIgnored = write(fdPidfile, szBuf, cbPid); NOREF(cbIgnored); 715 716 close(fdPidfile); 716 717 } -
trunk/src/VBox/Runtime/r3/posix/semevent-posix.cpp
r33540 r39032 311 311 DECL_FORCE_INLINE(int) rtSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies, bool fAutoResume) 312 312 { 313 #ifdef RTSEMEVENT_STRICT 313 314 PCRTLOCKVALSRCPOS pSrcPos = NULL; 315 #endif 314 316 315 317 /* -
trunk/src/VBox/Runtime/r3/socket.cpp
r37196 r39032 332 332 static int rtSocketSwitchBlockingModeSlow(RTSOCKETINT *pThis, bool fBlocking) 333 333 { 334 int rc = VINF_SUCCESS;335 334 #ifdef RT_OS_WINDOWS 336 335 u_long uBlocking = fBlocking ? 0 : 1;
Note:
See TracChangeset
for help on using the changeset viewer.