VirtualBox

Changeset 39032 in vbox for trunk/src


Ignore:
Timestamp:
Oct 19, 2011 11:08:50 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74450
Message:

IPRT: Fixed unused variable warnings.

Location:
trunk/src/VBox/Runtime
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgas.cpp

    r33663 r39032  
    758758     */
    759759    PAVLPVNODECORE pNode = RTAvlPVRemove(&pDbgAs->ModTree, pMod->Core.Key);
    760     Assert(pNode == &pMod->Core);
     760    Assert(pNode == &pMod->Core); NOREF(pNode);
    761761
    762762    /*
     
    793793    /* remove from the tree */
    794794    PAVLRUINTPTRNODECORE pNode = RTAvlrUIntPtrRemove(&pDbgAs->MapTree, pMap->Core.Key);
    795     Assert(pNode == &pMap->Core);
     795    Assert(pNode == &pMap->Core); NOREF(pNode);
    796796
    797797    /* unlink */
  • trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp

    r38620 r39032  
    19661966                                uint64_t uSeg = rtDwarfCursor_GetVarSizedU(pCursor, cbInstr - 1, UINT64_MAX);
    19671967                                Log2(("%08x: DW_LNE_set_segment: %ll#x - Watcom Extension\n", offOpCode, uSeg));
     1968                                NOREF(uSeg);
    19681969                                /** @todo make use of this? */
    19691970                            }
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r38581 r39032  
    692692    NOREF(pvBits);
    693693
    694     return VERR_NOT_IMPLEMENTED;
     694    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    695695}
    696696
     
    701701    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    702702
    703     return VERR_NOT_IMPLEMENTED;
     703    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    704704}
    705705
     
    711711    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    712712
    713     return VERR_NOT_IMPLEMENTED;
     713    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    714714}
    715715
     
    720720    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    721721
    722     return VERR_NOT_IMPLEMENTED;
     722    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    723723}
    724724
     
    730730    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    731731
    732     return VERR_NOT_IMPLEMENTED;
     732    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    733733}
    734734
     
    740740    PRTLDRMODELF pModElf = (PRTLDRMODELF)pMod;
    741741
    742     return VERR_NOT_IMPLEMENTED;
     742    return VERR_NOT_IMPLEMENTED; NOREF(pModElf);
    743743}
    744744
  • trunk/src/VBox/Runtime/common/misc/circbuf.cpp

    r38862 r39032  
    206206    pBuf->offWrite = (pBuf->offWrite + cbSize) % pBuf->cbBuf;
    207207
    208     size_t cbOldIgnored = 0;
    209208    ASMAtomicAddZ(&pBuf->cbUsed, cbSize);
    210209}
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r38515 r39032  
    688688
    689689            uint32_t uIndex;
    690             char *pszRet = NULL;
    691690            if (RTStrToUInt32Full(&pszArgThis[cchLong], 10, &uIndex) == VINF_SUCCESS)
    692691                pState->uIndex = uIndex;
  • trunk/src/VBox/Runtime/common/misc/req.cpp

    r33595 r39032  
    453453RTDECL(int) RTReqAlloc(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTREQTYPE enmType)
    454454{
    455     RT_EXPORT_SYMBOL(RTReqAlloc);
    456455    /*
    457456     * Validate input.
     
    573572    return VINF_SUCCESS;
    574573}
     574RT_EXPORT_SYMBOL(RTReqAlloc);
    575575
    576576
  • trunk/src/VBox/Runtime/common/path/RTPathAppendEx.cpp

    r34214 r39032  
    130130     * Balance slashes and check for buffer overflow.
    131131     */
    132     bool fAddSlash = false;
    133132    if (!RTPATH_IS_SLASH(pszPathEnd[-1]))
    134133    {
  • trunk/src/VBox/Runtime/common/string/RTStrCatP.cpp

    r36407 r39032  
    55
    66/*
    7  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939     * a copy operation.
    4040     */
    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);
    4344    AssertReturn(pszDst, VERR_INVALID_PARAMETER);
    44     *pcbDst -= pszDst - *ppszDst;
    4545    *ppszDst = pszDst;
     46    *pcbDst  = cbDst - (pszDst - pszDstOrg);
    4647
    4748    return RTStrCopyP(ppszDst, pcbDst, pszSrc);
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r36555 r39032  
    548548                                              uint32_t *pfRetEvents)
    549549{
    550     PRTVFSMEMFILE pThis = (PRTVFSMEMFILE)pvThis;
    551     int           rc;
    552 
     550    int rc;
    553551    if (fEvents != RTPOLL_EVT_ERROR)
    554552    {
  • trunk/src/VBox/Runtime/common/vfs/vfsstdfile.cpp

    r37596 r39032  
    253253                                              uint32_t *pfRetEvents)
    254254{
    255     PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    256     int           rc;
    257 
     255    int rc;
    258256    if (fEvents != RTPOLL_EVT_ERROR)
    259257    {
     
    345343static DECLCALLBACK(int) rtVfsStdFile_SetOwner(void *pvThis, RTUID uid, RTGID gid)
    346344{
    347     PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    348345#if 0
     346    PRTVFSSTDFILE pThis = (PRTVFSSTDFILE)pvThis;
    349347    return RTFileSetOwner(pThis->hFile, uid, gid);
    350348#else
  • trunk/src/VBox/Runtime/common/zip/gzipvfs.cpp

    r34049 r39032  
    511511             *        be handed on to zlib later on.
    512512             */
    513             size_t cbRead = 0;
    514513            rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), true /*fBlocking*/, NULL /*pcbRead*/);
    515514            if (RT_SUCCESS(rc))
  • trunk/src/VBox/Runtime/common/zip/tar.cpp

    r35351 r39032  
    599599        uint64_t cbAllWritten = 0; /* Already copied */
    600600        uint64_t cbRead       = 0; /* Actually read in the last step */
    601         uint64_t cbWrite      = 0; /* Actually write in the last step */
    602601        for (;;)
    603602        {
  • trunk/src/VBox/Runtime/r3/isofs.cpp

    r34406 r39032  
    317317        rc = VERR_FILE_NOT_FOUND;
    318318
    319         uint8_t uBuffer[RTISOFS_SECTOR_SIZE];
     319        uint8_t abBuffer[RTISOFS_SECTOR_SIZE];
    320320        size_t cbLeft = cbExtent;
    321321        while (!RT_SUCCESS(rc) && cbLeft > 0)
    322322        {
    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);
    326327            cbLeft -= cbRead;
    327328
     
    329330            while (idx < cbRead)
    330331            {
    331                 PRTISOFSDIRRECORD pCurRecord = (PRTISOFSDIRRECORD)&uBuffer[idx];
     332                PRTISOFSDIRRECORD pCurRecord = (PRTISOFSDIRRECORD)&abBuffer[idx];
    332333                if (pCurRecord->record_length == 0)
    333334                    break;
     
    336337                AssertPtr(pszName);
    337338                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);
    339340                pszName[pCurRecord->name_len] = '\0'; /* Force string termination. */
    340341
  • trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp

    r37499 r39032  
    697697    if (!fNoChDir)
    698698    {
    699         int rcChdir = chdir("/");
     699        int rcIgnored = chdir("/");
     700        NOREF(rcIgnored);
    700701    }
    701702
     
    712713            char szBuf[256];
    713714            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);
    715716            close(fdPidfile);
    716717        }
  • trunk/src/VBox/Runtime/r3/posix/semevent-posix.cpp

    r33540 r39032  
    311311DECL_FORCE_INLINE(int) rtSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies, bool fAutoResume)
    312312{
     313#ifdef RTSEMEVENT_STRICT
    313314    PCRTLOCKVALSRCPOS  pSrcPos = NULL;
     315#endif
    314316
    315317    /*
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r37196 r39032  
    332332static int rtSocketSwitchBlockingModeSlow(RTSOCKETINT *pThis, bool fBlocking)
    333333{
    334     int     rc        = VINF_SUCCESS;
    335334#ifdef RT_OS_WINDOWS
    336335    u_long  uBlocking = fBlocking ? 0 : 1;
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